Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001508, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 46.11 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 77.53 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1168, allocations: 62.44 MB / 479.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003524/0.1204, allocations: 2.457 MB / 482.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.1221, allocations: 0.9592 MB / 483.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.1224, allocations: 15.81 kB / 483.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003907/0.1228, allocations: 99.5 kB / 483.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1231, allocations: 71.59 kB / 483.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006596/0.1238, allocations: 255.7 kB / 483.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000708/0.1245, allocations: 0.6743 MB / 484.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.1247, allocations: 73.05 kB / 484.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004075/0.1251, allocations: 271 kB / 484.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.1255, allocations: 318.7 kB / 485.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.1257, allocations: 32 kB / 485.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.499e-05/0.1258, allocations: 36 kB / 485.2 MB, free: 496 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.126, allocations: 167.5 kB / 485.3 MB, free: 328 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.1262, allocations: 222.8 kB / 485.5 MB, free: 104 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003655/0.1266, allocations: 387.5 kB / 485.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1266, allocations: 0 / 485.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1266, allocations: 3.938 kB / 485.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.1266, allocations: 0 / 485.9 MB, free: 15.72 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.0023/0.1289, allocations: 0.9316 MB / 486.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.129, allocations: 12.88 kB / 486.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.1292, allocations: 64.28 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.1297, allocations: 371.2 kB / 487.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003453/0.13, allocations: 255.7 kB / 487.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.41e-05/0.1301, allocations: 48.36 kB / 487.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.1321, allocations: 0.8087 MB / 488.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.1321, allocations: 15.83 kB / 488.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.777e-05/0.1322, allocations: 16 kB / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1322, allocations: 8 kB / 488.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003317/0.1355, allocations: 1.2 MB / 489.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002972/0.1385, allocations: 2.042 MB / 491.7 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00283/0.1414, allocations: 0.8217 MB / 492.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.1428, allocations: 497.8 kB / 493 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.484e-05/0.1429, allocations: 15.98 kB / 493 MB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.1429, allocations: 50.5 kB / 493.1 MB, free: 8.305 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.765e-06/0.1429, allocations: 0 / 493.1 MB, free: 8.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08742/0.2303, allocations: 15.75 MB / 0.4969 GB, free: 8.379 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.2304, allocations: 90.23 kB / 0.497 GB, free: 8.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.2309, allocations: 385.4 kB / 0.4973 GB, free: 7.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002138/0.2311, allocations: 49.7 kB / 0.4974 GB, free: 7.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.2313, allocations: 221.1 kB / 0.4976 GB, free: 7.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004635/0.2318, allocations: 398.1 kB / 0.498 GB, free: 7.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006317/0.2324, allocations: 198.8 kB / 0.4982 GB, free: 7.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.2326, allocations: 370.8 kB / 0.4985 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003438/0.236, allocations: 1.349 MB / 0.4998 GB, free: 5.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003527/0.2396, allocations: 1.49 MB / 0.5013 GB, free: 3.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006307/0.2459, allocations: 2.449 MB / 0.5037 GB, free: 1.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.2459, allocations: 4 kB / 0.5037 GB, free: 1.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.1836/0.4296, allocations: 2.825 MB / 0.5064 GB, free: 43.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.4297, allocations: 5.844 kB / 0.5064 GB, free: 43.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.4297, allocations: 6.531 kB / 0.5065 GB, free: 43.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.209e-05/0.4297, allocations: 9.297 kB / 0.5065 GB, free: 43.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/0.4325, allocations: 406.9 kB / 0.5068 GB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.582e-05/0.4325, allocations: 12.16 kB / 0.5069 GB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.4345, allocations: 219.1 kB / 0.5071 GB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.4347, allocations: 41.31 kB / 0.5071 GB, free: 43.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 148 * 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.0004579/0.4351, allocations: 231.5 kB / 0.5073 GB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/0.4354, allocations: 62.72 kB / 0.5074 GB, free: 43.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.4356, allocations: 110.4 kB / 0.5075 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4356, allocations: 11.53 kB / 0.5075 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.4356, allocations: 5.734 kB / 0.5075 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.4356, allocations: 5.766 kB / 0.5075 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.4466, allocations: 5.228 MB / 0.5126 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.981e-05/0.4467, allocations: 26.09 kB / 0.5126 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001461/0.4481, allocations: 351.5 kB / 0.513 GB, free: 40.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.639e-05/0.4482, allocations: 27.91 kB / 0.513 GB, free: 40.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.4483, allocations: 48.05 kB / 0.5131 GB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.609e-05/0.4483, allocations: 40.41 kB / 0.5131 GB, free: 40.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.747e-05/0.4484, allocations: 31.72 kB / 0.5131 GB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006737/0.4551, allocations: 3.086 MB / 0.5161 GB, free: 39.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004558/0.4556, allocations: 233.8 kB / 0.5164 GB, free: 39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.4558, allocations: 55.83 kB / 0.5164 GB, free: 38.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.4571, allocations: 190.1 kB / 0.5166 GB, free: 38.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004839/0.4576, allocations: 219.4 kB / 0.5168 GB, free: 38.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.4578, allocations: 57.86 kB / 0.5169 GB, free: 38.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003318/0.4581, allocations: 262 kB / 0.5171 GB, free: 38.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4581, allocations: 1.75 kB / 0.5171 GB, free: 38.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001201/0.4593, allocations: 231.5 kB / 0.5173 GB, free: 38.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.0002596/0.4596, allocations: 168.9 kB / 0.5175 GB, free: 38.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006403/0.466, allocations: 2.342 MB / 0.5198 GB, free: 37.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/0.466, allocations: 3.156 kB / 0.5198 GB, free: 37.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003173/0.4692, allocations: 1.069 MB / 0.5208 GB, free: 37.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.4707, allocations: 156.8 kB / 0.521 GB, free: 37.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003836/0.4745, allocations: 2.252 MB / 0.5232 GB, free: 35.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/0.475, allocations: 0.9197 MB / 0.5241 GB, free: 34.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007648/0.4758, allocations: 79.03 kB / 0.5241 GB, free: 34.89 MB / 382.1 MB Notification: Performance of SimCode: time 9.41e-07/0.4758, allocations: 0 / 0.5241 GB, free: 34.89 MB / 382.1 MB Notification: Performance of Templates: time 0.0179/0.4937, allocations: 14.22 MB / 0.538 GB, free: 23.18 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches