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.001045/0.001045, allocations: 100 kB / 17.63 MB, free: 5.523 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.001125/0.001125, allocations: 192.1 kB / 18.56 MB, free: 4.602 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.304/1.304, allocations: 222.9 MB / 242.2 MB, free: 15.27 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.2138/0.2138, allocations: 44.19 MB / 336.6 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 64.97 kB / 408.4 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1381, allocations: 60.83 MB / 469.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004332/0.1425, allocations: 2.392 MB / 471.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1445, allocations: 0.9475 MB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003796/0.1449, allocations: 11.88 kB / 472.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004728/0.1453, allocations: 115.2 kB / 472.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003788/0.1458, allocations: 103.3 kB / 472.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008264/0.1466, allocations: 283.5 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000847/0.1475, allocations: 0.7251 MB / 473.8 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.1477, allocations: 69.03 kB / 473.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003092/0.148, allocations: 291.1 kB / 474.2 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003753/0.1483, allocations: 338.7 kB / 474.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.063e-05/0.1484, allocations: 60 kB / 474.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.597e-05/0.1485, allocations: 60 kB / 474.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.1487, allocations: 187.5 kB / 474.8 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.149, allocations: 242.7 kB / 475 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004692/0.1494, allocations: 0.5415 MB / 475.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1495, allocations: 0 / 475.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1495, allocations: 4 kB / 475.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1495, allocations: 0 / 475.6 MB, free: 8.035 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.002165/0.1516, allocations: 0.9353 MB / 476.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.1517, allocations: 11.97 kB / 476.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1518, allocations: 68.28 kB / 476.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.1523, allocations: 371.2 kB / 476.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/0.1526, allocations: 263.7 kB / 477.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.502e-05/0.1527, allocations: 40.38 kB / 477.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/0.1547, allocations: 0.8125 MB / 478.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.1547, allocations: 7.891 kB / 478.1 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.675e-05/0.1548, allocations: 16 kB / 478.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.1548, allocations: 15.98 kB / 478.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003555/0.1584, allocations: 1.204 MB / 479.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.1611, allocations: 2.042 MB / 481.3 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003032/0.1641, allocations: 0.8207 MB / 482.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/0.1656, allocations: 0.4895 MB / 482.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-05/0.1657, allocations: 9.062 kB / 482.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1657, allocations: 42.5 kB / 482.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.524e-06/0.1657, allocations: 0 / 482.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08531/0.251, allocations: 15.75 MB / 498.5 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.2511, allocations: 90.23 kB / 498.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004958/0.2516, allocations: 393.4 kB / 498.9 MB, free: 196 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/0.2518, allocations: 45.7 kB / 499 MB, free: 144 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.252, allocations: 221 kB / 499.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/0.2524, allocations: 402.1 kB / 499.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006367/0.2531, allocations: 198.8 kB / 499.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.2533, allocations: 374.8 kB / 0.4884 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003708/0.257, allocations: 1.338 MB / 0.4897 GB, free: 13.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00388/0.2609, allocations: 1.501 MB / 0.4912 GB, free: 12.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00667/0.2676, allocations: 2.441 MB / 0.4936 GB, free: 9.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.2676, allocations: 0 / 0.4936 GB, free: 9.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007714/0.2753, allocations: 2.83 MB / 0.4963 GB, free: 6.738 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.2754, allocations: 8 kB / 0.4963 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.2754, allocations: 7.938 kB / 0.4964 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.892e-05/0.2754, allocations: 8 kB / 0.4964 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/0.2781, allocations: 403.5 kB / 0.4967 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.474e-05/0.2781, allocations: 19.88 kB / 0.4968 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.2801, allocations: 215.7 kB / 0.497 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.2803, allocations: 39.98 kB / 0.497 GB, free: 6.051 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.0004795/0.2808, allocations: 234 kB / 0.4972 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002594/0.2811, allocations: 63.25 kB / 0.4973 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002386/0.2813, allocations: 112.7 kB / 0.4974 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.2813, allocations: 16 kB / 0.4974 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.2813, allocations: 11.92 kB / 0.4974 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.2814, allocations: 3.984 kB / 0.4974 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/0.2929, allocations: 5.23 MB / 0.5025 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.225e-05/0.2929, allocations: 20 kB / 0.5026 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2192/0.5122, allocations: 347.8 kB / 0.5029 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.5e-05/0.5122, allocations: 31.75 kB / 0.5029 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.84e-05/0.5124, allocations: 45.7 kB / 0.503 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.734e-05/0.5124, allocations: 39.75 kB / 0.503 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.556e-05/0.5124, allocations: 31.47 kB / 0.503 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007516/0.5199, allocations: 3.094 MB / 0.5061 GB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00051/0.5205, allocations: 235 kB / 0.5063 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.5206, allocations: 54.03 kB / 0.5063 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.522, allocations: 186.9 kB / 0.5065 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004291/0.5224, allocations: 218.5 kB / 0.5067 GB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-05/0.5225, allocations: 60.48 kB / 0.5068 GB, free: 49.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003178/0.5228, allocations: 269.5 kB / 0.507 GB, free: 49.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5228, allocations: 0 / 0.507 GB, free: 49.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001009/0.5239, allocations: 233.6 kB / 0.5073 GB, free: 49.39 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.0002115/0.5241, allocations: 165 kB / 0.5074 GB, free: 49.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007145/0.5312, allocations: 2.406 MB / 0.5098 GB, free: 48.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.111e-05/0.5313, allocations: 3.875 kB / 0.5098 GB, free: 48.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003382/0.5346, allocations: 1.066 MB / 0.5108 GB, free: 48.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.5361, allocations: 147.7 kB / 0.5109 GB, free: 48.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.5397, allocations: 1.954 MB / 0.5129 GB, free: 46.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.5402, allocations: 0.927 MB / 0.5138 GB, free: 45.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001196/0.5414, allocations: 196.9 kB / 0.5139 GB, free: 45.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005341/0.542, allocations: 69.58 kB / 0.514 GB, free: 45.76 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.542, allocations: 9.312 kB / 0.514 GB, free: 45.75 MB / 382.1 MB Notification: Performance of Templates: time 0.02056/0.5626, allocations: 16.66 MB / 0.5303 GB, free: 35.41 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/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_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches