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.001388/0.001388, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001255/0.001255, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.417/1.417, allocations: 222.9 MB / 243 MB, free: 15.14 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.2178/0.2178, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001243, allocations: 59.97 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1387, allocations: 60.82 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.005218/0.144, allocations: 2.407 MB / 473.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.1464, allocations: 0.9475 MB / 474 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.1466, allocations: 7.938 kB / 474 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004952/0.1472, allocations: 111.2 kB / 474.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003446/0.1475, allocations: 95.31 kB / 474.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.1485, allocations: 291.5 kB / 474.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.1495, allocations: 0.7173 MB / 475.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.1498, allocations: 73.03 kB / 475.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000447/0.1503, allocations: 295 kB / 475.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000522/0.1508, allocations: 334.7 kB / 475.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.1509, allocations: 60 kB / 476 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.1511, allocations: 67.94 kB / 476.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002561/0.1513, allocations: 187.5 kB / 476.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.1516, allocations: 242.7 kB / 476.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007252/0.1524, allocations: 0.5567 MB / 477 MB, free: 7.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1524, allocations: 0 / 477 MB, free: 7.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1524, allocations: 0 / 477 MB, free: 7.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1524, allocations: 0 / 477 MB, free: 7.246 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.003173/0.1556, allocations: 0.9392 MB / 478 MB, free: 6.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1556, allocations: 12.03 kB / 478 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.1558, allocations: 64.28 kB / 478.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00088/0.1567, allocations: 379.1 kB / 478.4 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005153/0.1573, allocations: 271.6 kB / 478.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.1574, allocations: 36.38 kB / 478.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002791/0.1602, allocations: 0.8048 MB / 479.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.1603, allocations: 15.89 kB / 479.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.819e-05/0.1604, allocations: 16 kB / 479.6 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.1604, allocations: 11.98 kB / 479.6 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004977/0.1654, allocations: 1.208 MB / 480.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003965/0.1694, allocations: 2.034 MB / 482.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/0.1732, allocations: 0.8244 MB / 483.6 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001944/0.1752, allocations: 493.4 kB / 484.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/0.1753, allocations: 13.05 kB / 484.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.1753, allocations: 46.5 kB / 484.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 4.628e-06/0.1753, allocations: 0 / 484.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.1039/0.2792, allocations: 15.74 MB / 499.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.2793, allocations: 90.23 kB / 0.4883 GB, free: 15.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004641/0.2798, allocations: 393.4 kB / 0.4887 GB, free: 15.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.2799, allocations: 49.7 kB / 0.4887 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.2801, allocations: 224.9 kB / 0.4889 GB, free: 15.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/0.2805, allocations: 402.1 kB / 0.4893 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005339/0.281, allocations: 198.8 kB / 0.4895 GB, free: 14.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.2812, allocations: 370.8 kB / 0.4898 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003311/0.2845, allocations: 1.345 MB / 0.4912 GB, free: 12.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003458/0.288, allocations: 1.493 MB / 0.4926 GB, free: 11.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006017/0.294, allocations: 2.445 MB / 0.495 GB, free: 8.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.294, allocations: 0 / 0.495 GB, free: 8.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007453/0.3015, allocations: 2.83 MB / 0.4978 GB, free: 5.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.3016, allocations: 11.44 kB / 0.4978 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.3016, allocations: 4 kB / 0.4978 GB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.3016, allocations: 8 kB / 0.4978 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002615/0.3042, allocations: 411.6 kB / 0.4982 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.3043, allocations: 15.88 kB / 0.4982 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.3062, allocations: 215.7 kB / 0.4984 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.3063, allocations: 39.98 kB / 0.4984 GB, free: 5.266 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.0004772/0.3068, allocations: 242 kB / 0.4987 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.307, allocations: 67.25 kB / 0.4987 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.3072, allocations: 108.7 kB / 0.4988 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.3073, allocations: 12 kB / 0.4989 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.3073, allocations: 11.92 kB / 0.4989 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3073, allocations: 3.984 kB / 0.4989 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2534/0.5607, allocations: 5.22 MB / 0.504 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001192/0.5609, allocations: 20.94 kB / 0.504 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002465/0.5633, allocations: 357 kB / 0.5043 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.023e-05/0.5635, allocations: 27.12 kB / 0.5044 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/0.5637, allocations: 49.95 kB / 0.5044 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-05/0.5638, allocations: 39.59 kB / 0.5044 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.49e-05/0.5639, allocations: 34.78 kB / 0.5045 GB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/0.5752, allocations: 3.09 MB / 0.5075 GB, free: 49.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007268/0.5759, allocations: 238.6 kB / 0.5077 GB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.5762, allocations: 46.42 kB / 0.5078 GB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001999/0.5782, allocations: 194.4 kB / 0.5079 GB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006692/0.5789, allocations: 216.1 kB / 0.5082 GB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/0.5791, allocations: 59 kB / 0.5082 GB, free: 49.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004738/0.5796, allocations: 264.8 kB / 0.5085 GB, free: 49.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5796, allocations: 0 / 0.5085 GB, free: 49.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001646/0.5812, allocations: 229.8 kB / 0.5087 GB, free: 49.02 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.000285/0.5816, allocations: 171 kB / 0.5088 GB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01033/0.5919, allocations: 2.393 MB / 0.5112 GB, free: 48.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.886e-05/0.5919, allocations: 2.594 kB / 0.5112 GB, free: 48.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005993/0.5979, allocations: 1.068 MB / 0.5122 GB, free: 47.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.6002, allocations: 151 kB / 0.5124 GB, free: 47.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00345/0.6036, allocations: 1.938 MB / 0.5143 GB, free: 46.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004721/0.6041, allocations: 0.9228 MB / 0.5152 GB, free: 45.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009813/0.6051, allocations: 207.5 kB / 0.5154 GB, free: 45.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005997/0.6057, allocations: 72.41 kB / 0.5154 GB, free: 45.42 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.6057, allocations: 0 / 0.5154 GB, free: 45.42 MB / 382.1 MB Notification: Performance of Templates: time 0.02379/0.6295, allocations: 16.69 MB / 0.5317 GB, free: 34.49 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 -s cvode -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