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.001654/0.001655, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001649/0.001649, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.641/1.641, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2922/0.2922, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 76.44 kB / 417.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1697, allocations: 62.46 MB / 480.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.005134/0.1749, allocations: 2.406 MB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.177, allocations: 0.9669 MB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.1772, allocations: 11.94 kB / 483.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.1776, allocations: 123.2 kB / 483.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.1778, allocations: 91.39 kB / 483.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007168/0.1785, allocations: 283.5 kB / 484 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008509/0.1794, allocations: 0.7252 MB / 484.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.1796, allocations: 65.05 kB / 484.8 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.18, allocations: 303 kB / 485.1 MB, free: 256 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005012/0.1805, allocations: 326.9 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.1807, allocations: 60 kB / 485.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.1808, allocations: 60 kB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002648/0.181, allocations: 191.4 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002835/0.1813, allocations: 234.8 kB / 485.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006822/0.182, allocations: 0.5415 MB / 486.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.182, allocations: 0 / 486.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.182, allocations: 3.984 kB / 486.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.1821, allocations: 0 / 486.5 MB, free: 14.85 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.002502/0.1846, allocations: 0.9315 MB / 487.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.1846, allocations: 8.031 kB / 487.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.1848, allocations: 72.27 kB / 487.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005959/0.1854, allocations: 363.2 kB / 487.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004025/0.1858, allocations: 267.7 kB / 488.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.1859, allocations: 40.38 kB / 488.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002141/0.1881, allocations: 0.8125 MB / 488.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.1881, allocations: 11.89 kB / 489 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.1882, allocations: 16 kB / 489 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.1882, allocations: 12 kB / 489 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003621/0.1918, allocations: 1.204 MB / 490.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.195, allocations: 2.035 MB / 492.2 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003031/0.198, allocations: 0.8347 MB / 493.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.1995, allocations: 493.8 kB / 493.5 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.135e-05/0.1996, allocations: 11.98 kB / 493.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.1997, allocations: 46.48 kB / 493.6 MB, free: 7.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 3.056e-06/0.1997, allocations: 0 / 493.6 MB, free: 7.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08481/0.2845, allocations: 15.75 MB / 0.4974 GB, free: 7.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.2847, allocations: 90.23 kB / 0.4975 GB, free: 7.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000752/0.2854, allocations: 393.4 kB / 0.4979 GB, free: 7.012 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001983/0.2856, allocations: 45.7 kB / 0.4979 GB, free: 6.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002467/0.2859, allocations: 217.1 kB / 0.4981 GB, free: 6.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005276/0.2864, allocations: 402.1 kB / 0.4985 GB, free: 6.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006347/0.2871, allocations: 190.9 kB / 0.4987 GB, free: 6.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.2873, allocations: 374.8 kB / 0.499 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003695/0.291, allocations: 1.342 MB / 0.5004 GB, free: 4.434 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003709/0.2947, allocations: 1.501 MB / 0.5018 GB, free: 2.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006757/0.3015, allocations: 2.438 MB / 0.5042 GB, free: 416 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.3016, allocations: 8 kB / 0.5042 GB, free: 408 kB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.3198/0.6214, allocations: 2.823 MB / 0.507 GB, free: 43.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.6215, allocations: 10.25 kB / 0.507 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.6215, allocations: 4.781 kB / 0.507 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.6215, allocations: 7.719 kB / 0.507 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/0.6243, allocations: 408.1 kB / 0.5074 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.596e-05/0.6243, allocations: 15.69 kB / 0.5074 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.6264, allocations: 222 kB / 0.5076 GB, free: 43.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.6265, allocations: 39.11 kB / 0.5076 GB, free: 43.25 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.0004587/0.627, allocations: 236.3 kB / 0.5079 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.6272, allocations: 61.33 kB / 0.5079 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000197/0.6274, allocations: 110.4 kB / 0.508 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.6274, allocations: 11.78 kB / 0.508 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.6274, allocations: 4.734 kB / 0.508 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.6275, allocations: 10.31 kB / 0.5081 GB, free: 42.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/0.6387, allocations: 5.218 MB / 0.5132 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-05/0.6388, allocations: 21.64 kB / 0.5132 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/0.6403, allocations: 353.7 kB / 0.5135 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.689e-05/0.6403, allocations: 27.75 kB / 0.5135 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.331e-05/0.6404, allocations: 51.61 kB / 0.5136 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.939e-05/0.6404, allocations: 46.86 kB / 0.5136 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.227e-05/0.6405, allocations: 32.86 kB / 0.5137 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007315/0.6478, allocations: 3.091 MB / 0.5167 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000452/0.6483, allocations: 238.9 kB / 0.5169 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001631/0.6485, allocations: 51.36 kB / 0.517 GB, free: 38.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/0.6499, allocations: 190 kB / 0.5171 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005049/0.6504, allocations: 218.3 kB / 0.5173 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.292e-05/0.6505, allocations: 56.95 kB / 0.5174 GB, free: 38.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003184/0.6508, allocations: 263.3 kB / 0.5177 GB, free: 38.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6508, allocations: 1.125 kB / 0.5177 GB, free: 38.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001212/0.652, allocations: 231.2 kB / 0.5179 GB, free: 38.27 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.0002431/0.6523, allocations: 167.7 kB / 0.518 GB, free: 38.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007144/0.6594, allocations: 2.415 MB / 0.5204 GB, free: 37.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.439e-05/0.6595, allocations: 2.875 kB / 0.5204 GB, free: 37.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003538/0.663, allocations: 1.064 MB / 0.5214 GB, free: 36.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.6645, allocations: 146.6 kB / 0.5216 GB, free: 36.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/0.668, allocations: 1.969 MB / 0.5235 GB, free: 35.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004068/0.6684, allocations: 0.9235 MB / 0.5244 GB, free: 34.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001156/0.6696, allocations: 207.9 kB / 0.5246 GB, free: 34.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005034/0.6701, allocations: 70.73 kB / 0.5247 GB, free: 34.51 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6701, allocations: 0 / 0.5247 GB, free: 34.51 MB / 382.1 MB Notification: Performance of Templates: time 0.021/0.6911, allocations: 16.59 MB / 0.5409 GB, free: 19.67 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches