Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001193/0.001193, allocations: 193.3 kB / 18.91 MB, free: 4.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 242.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2006/0.2006, allocations: 44.18 MB / 336.9 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.00168, allocations: 69.36 kB / 408.5 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1086, allocations: 60.84 MB / 469.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003383/0.112, allocations: 2.434 MB / 471.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.1136, allocations: 0.9358 MB / 472.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.1137, allocations: 7.938 kB / 472.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003407/0.1141, allocations: 95.52 kB / 472.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.1143, allocations: 87.52 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005967/0.1149, allocations: 255.7 kB / 473.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006283/0.1156, allocations: 0.7173 MB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.1158, allocations: 73.03 kB / 474 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003066/0.1161, allocations: 303 kB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.1164, allocations: 350.6 kB / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.101e-05/0.1165, allocations: 60 kB / 474.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.837e-05/0.1166, allocations: 60 kB / 474.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.1168, allocations: 183.6 kB / 474.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.117, allocations: 254.7 kB / 475.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.1174, allocations: 411.4 kB / 475.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1174, allocations: 0 / 475.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1174, allocations: 0 / 475.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1174, allocations: 7.938 kB / 475.6 MB, free: 8.488 MB / 350.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.00216/0.1196, allocations: 0.9314 MB / 476.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1196, allocations: 8.031 kB / 476.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1198, allocations: 68.28 kB / 476.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000442/0.1202, allocations: 371.2 kB / 476.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003426/0.1206, allocations: 267.7 kB / 477.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.812e-05/0.1207, allocations: 40.38 kB / 477.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001924/0.1226, allocations: 0.8165 MB / 478 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.1226, allocations: 3.906 kB / 478.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/0.1227, allocations: 16 kB / 478.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.1227, allocations: 12 kB / 478.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003342/0.1261, allocations: 1.208 MB / 479.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.1288, allocations: 2.046 MB / 481.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002957/0.1318, allocations: 0.8251 MB / 482.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.1333, allocations: 497.3 kB / 482.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.721e-05/0.1334, allocations: 9.062 kB / 482.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.1334, allocations: 42.5 kB / 482.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.886e-06/0.1334, allocations: 0 / 482.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08603/0.2195, allocations: 15.74 MB / 498.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.2196, allocations: 90.23 kB / 498.5 MB, free: 1.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/0.2201, allocations: 389.4 kB / 498.9 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/0.2203, allocations: 49.7 kB / 499 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.2205, allocations: 217 kB / 499.2 MB, free: 392 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004534/0.2209, allocations: 402.2 kB / 499.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006335/0.2216, allocations: 198.8 kB / 499.8 MB, free: 15.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2217, allocations: 374.8 kB / 0.4884 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003443/0.2252, allocations: 1.342 MB / 0.4897 GB, free: 14.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003578/0.2288, allocations: 1.497 MB / 0.4912 GB, free: 12.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006431/0.2352, allocations: 2.449 MB / 0.4936 GB, free: 10.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.2353, allocations: 0 / 0.4936 GB, free: 10.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007461/0.2427, allocations: 2.822 MB / 0.4963 GB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.2428, allocations: 12.03 kB / 0.4963 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.2428, allocations: 4 kB / 0.4963 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.2429, allocations: 8 kB / 0.4963 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/0.2456, allocations: 411.3 kB / 0.4967 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.154e-05/0.2457, allocations: 15.94 kB / 0.4968 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.2478, allocations: 215.7 kB / 0.497 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002251/0.248, allocations: 39.98 kB / 0.497 GB, free: 6.508 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.0006043/0.2486, allocations: 229.5 kB / 0.4972 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.2489, allocations: 67.25 kB / 0.4973 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.2491, allocations: 104.7 kB / 0.4974 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.2492, allocations: 15.94 kB / 0.4974 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.2492, allocations: 11.94 kB / 0.4974 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.2492, allocations: 7.969 kB / 0.4974 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/0.2606, allocations: 5.227 MB / 0.5025 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.331e-05/0.2607, allocations: 23.98 kB / 0.5025 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.2622, allocations: 355.9 kB / 0.5029 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.718e-05/0.2623, allocations: 28 kB / 0.5029 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.2624, allocations: 44 kB / 0.5029 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.008e-05/0.2624, allocations: 43.8 kB / 0.503 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2014/0.4638, allocations: 31.41 kB / 0.503 GB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007242/0.4711, allocations: 3.092 MB / 0.506 GB, free: 49.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004053/0.4715, allocations: 239.2 kB / 0.5063 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.4717, allocations: 53.52 kB / 0.5063 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.473, allocations: 188.3 kB / 0.5065 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004415/0.4734, allocations: 214.2 kB / 0.5067 GB, free: 49.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.465e-05/0.4735, allocations: 60.22 kB / 0.5068 GB, free: 49.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.4738, allocations: 269.2 kB / 0.507 GB, free: 49.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4738, allocations: 0 / 0.507 GB, free: 49.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00103/0.4749, allocations: 229.8 kB / 0.5072 GB, free: 49.45 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.0002144/0.4751, allocations: 172.5 kB / 0.5074 GB, free: 49.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006346/0.4815, allocations: 2.401 MB / 0.5097 GB, free: 48.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.523e-05/0.4815, allocations: 4.031 kB / 0.5097 GB, free: 48.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003355/0.4849, allocations: 1.067 MB / 0.5108 GB, free: 48.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.4863, allocations: 149.9 kB / 0.5109 GB, free: 48.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.49, allocations: 2.246 MB / 0.5131 GB, free: 46.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.4905, allocations: 0.9229 MB / 0.514 GB, free: 45.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007748/0.4913, allocations: 82.03 kB / 0.5141 GB, free: 45.62 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4913, allocations: 3.828 kB / 0.5141 GB, free: 45.62 MB / 382.1 MB Notification: Performance of Templates: time 0.02209/0.5134, allocations: 14.23 MB / 0.528 GB, free: 38.3 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches