Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 99.06 kB / 16.44 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 192 kB / 17.38 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.1 MB / 223.3 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07703/0.07703, allocations: 12.58 MB / 283.2 MB, free: 15.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 94.59 kB / 394.1 MB, free: 45.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1052, allocations: 49.4 MB / 443.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.003251/0.1085, allocations: 1.856 MB / 445.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009688/0.1094, allocations: 499.6 kB / 445.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.1096, allocations: 7.938 kB / 445.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.1097, allocations: 11.86 kB / 445.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.56e-05/0.1098, allocations: 27.78 kB / 445.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.11, allocations: 31.89 kB / 446 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.1102, allocations: 99.64 kB / 446.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.1104, allocations: 41.36 kB / 446.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.228e-05/0.1105, allocations: 39.86 kB / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.317e-05/0.1106, allocations: 51.77 kB / 446.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.1107, allocations: 8 kB / 446.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.112e-05/0.1107, allocations: 8 kB / 446.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.32e-05/0.1107, allocations: 19.92 kB / 446.2 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.956e-05/0.1108, allocations: 51.73 kB / 446.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.111, allocations: 95.67 kB / 446.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.111, allocations: 0 / 446.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.111, allocations: 0 / 446.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.111, allocations: 0 / 446.4 MB, free: 13.77 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007378/0.1118, allocations: 419.1 kB / 446.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.1118, allocations: 12.03 kB / 446.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.87e-05/0.1119, allocations: 8.844 kB / 446.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.1122, allocations: 192.2 kB / 447 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1122, allocations: 8.562 kB / 447 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.1122, allocations: 8.375 kB / 447 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.1126, allocations: 123.2 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.1126, allocations: 4 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.1126, allocations: 4 kB / 447.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1126, allocations: 4 kB / 447.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.1129, allocations: 67.94 kB / 447.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007939/0.1137, allocations: 0.5284 MB / 447.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002109/0.1139, allocations: 78.55 kB / 447.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.1141, allocations: 40.83 kB / 447.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.1141, allocations: 0 / 447.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1141, allocations: 34.56 kB / 447.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.1141, allocations: 0 / 447.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004368/0.1146, allocations: 133.6 kB / 448 MB, free: 11.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.1146, allocations: 55.34 kB / 448.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.1147, allocations: 133.7 kB / 448.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1148, allocations: 25.7 kB / 448.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.09e-05/0.1149, allocations: 107.9 kB / 448.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.1149, allocations: 31.56 kB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.1149, allocations: 29.7 kB / 448.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1151, allocations: 322.8 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1152, allocations: 35.98 kB / 448.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.1154, allocations: 64.27 kB / 448.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.1156, allocations: 104.2 kB / 448.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.1156, allocations: 0 / 448.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003043/0.1159, allocations: 141.4 kB / 449 MB, free: 10.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.116, allocations: 4 kB / 449 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.116, allocations: 4 kB / 449.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.116, allocations: 0 / 449.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1162, allocations: 31.98 kB / 449.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.1162, allocations: 4 kB / 449.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.694e-05/0.1163, allocations: 11.89 kB / 449.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.1163, allocations: 8.125 kB / 449.1 MB, free: 10.76 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.1164, allocations: 125.7 kB / 449.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.1165, allocations: 7.906 kB / 449.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.1165, allocations: 16.36 kB / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.1165, allocations: 3.984 kB / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1165, allocations: 0 / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1165, allocations: 0 / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/0.1168, allocations: 201.5 kB / 449.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1168, allocations: 96 / 449.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.1169, allocations: 27.92 kB / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1169, allocations: 4 kB / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.117, allocations: 3.938 kB / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.117, allocations: 0 / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.117, allocations: 0 / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004278/0.1174, allocations: 239.3 kB / 449.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.992e-05/0.1175, allocations: 89.02 kB / 449.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.1175, allocations: 0 / 449.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.133e-05/0.1176, allocations: 8.031 kB / 449.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.872e-05/0.1177, allocations: 7.984 kB / 449.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-06/0.1177, allocations: 4 kB / 449.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.815e-05/0.1178, allocations: 95.27 kB / 449.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1178, allocations: 0 / 449.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002425/0.118, allocations: 20 kB / 449.9 MB, free: 9.828 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001009/0.1181, allocations: 95.25 kB / 450 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002738/0.1184, allocations: 84.28 kB / 450.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1184, allocations: 0 / 450.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.1185, allocations: 35.91 kB / 450.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.1189, allocations: 36.5 kB / 450.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000742/0.1196, allocations: 368.6 kB / 450.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.12, allocations: 0.7002 MB / 451.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.622e-05/0.1201, allocations: 16.41 kB / 451.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.069e-05/0.1201, allocations: 11.44 kB / 451.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1201, allocations: 0 / 451.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of Templates: time 0.003735/0.1238, allocations: 0.9838 MB / 452.3 MB, free: 7.445 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches