Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008146/0.008146, allocations: 101.1 kB / 15.87 MB, free: 6.309 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.001574/0.001574, allocations: 190.5 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.1 MB / 222.6 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.383/0.383, allocations: 43.49 MB / 313.5 MB, free: 8.277 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 67.91 kB / 382 MB, free: 8.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1481, allocations: 57.79 MB / 439.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00388/0.1521, allocations: 2.445 MB / 442.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.154, allocations: 0.9757 MB / 443.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.1542, allocations: 7.938 kB / 443.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004389/0.1547, allocations: 103.4 kB / 443.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.1549, allocations: 79.58 kB / 443.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006474/0.1556, allocations: 247.7 kB / 443.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007268/0.1563, allocations: 0.6899 MB / 444.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.1565, allocations: 73.33 kB / 444.4 MB, free: 9.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003586/0.1569, allocations: 267 kB / 444.7 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004496/0.1573, allocations: 326.7 kB / 445 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.043e-05/0.1574, allocations: 32 kB / 445 MB, free: 9.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.499e-05/0.1575, allocations: 36 kB / 445.1 MB, free: 9.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001901/0.1577, allocations: 163.5 kB / 445.2 MB, free: 9.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.158, allocations: 230.7 kB / 445.5 MB, free: 8.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005701/0.1585, allocations: 0.506 MB / 446 MB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.1585, allocations: 0 / 446 MB, free: 8.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1586, allocations: 0 / 446 MB, free: 8.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1586, allocations: 0 / 446 MB, free: 8.422 MB / 382.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.002422/0.161, allocations: 0.9431 MB / 446.9 MB, free: 7.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.095e-05/0.1611, allocations: 12.03 kB / 446.9 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.1612, allocations: 64.36 kB / 447 MB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005677/0.1618, allocations: 375.1 kB / 447.3 MB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/0.1622, allocations: 255.7 kB / 447.6 MB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.1623, allocations: 48.38 kB / 447.6 MB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.1644, allocations: 0.8125 MB / 448.5 MB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.1644, allocations: 7.984 kB / 448.5 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.131e-05/0.1645, allocations: 16 kB / 448.5 MB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.1645, allocations: 12 kB / 448.5 MB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003404/0.1679, allocations: 1.204 MB / 449.7 MB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002862/0.1708, allocations: 2.035 MB / 451.7 MB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002909/0.1737, allocations: 0.8207 MB / 452.6 MB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.1752, allocations: 0.4905 MB / 453 MB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.083e-05/0.1753, allocations: 19.92 kB / 453.1 MB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1753, allocations: 42.5 kB / 453.1 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.695e-06/0.1753, allocations: 0 / 453.1 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.3936/0.569, allocations: 15.74 MB / 468.8 MB, free: 47.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.477e-05/0.5691, allocations: 88.33 kB / 468.9 MB, free: 47.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006342/0.5698, allocations: 389.4 kB / 469.3 MB, free: 46.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002034/0.57, allocations: 44.33 kB / 469.4 MB, free: 46.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.5702, allocations: 224.2 kB / 469.6 MB, free: 46.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004129/0.5706, allocations: 404.4 kB / 470 MB, free: 46.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000584/0.5712, allocations: 195.7 kB / 470.2 MB, free: 46.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5713, allocations: 374.8 kB / 470.5 MB, free: 45.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003302/0.5746, allocations: 1.344 MB / 471.9 MB, free: 45.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003576/0.5782, allocations: 1.492 MB / 473.4 MB, free: 44.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005815/0.5841, allocations: 2.446 MB / 475.8 MB, free: 43.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.5841, allocations: 0 / 475.8 MB, free: 43.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007913/0.592, allocations: 2.834 MB / 478.6 MB, free: 42.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.5921, allocations: 7.422 kB / 478.7 MB, free: 42.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.5921, allocations: 3.25 kB / 478.7 MB, free: 42.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.056e-05/0.5922, allocations: 8.406 kB / 478.7 MB, free: 42.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.5952, allocations: 413 kB / 479.1 MB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.235e-05/0.5953, allocations: 9.094 kB / 479.1 MB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/0.5975, allocations: 218.8 kB / 479.3 MB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.5976, allocations: 38.62 kB / 479.3 MB, free: 42.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.0005589/0.5982, allocations: 229.1 kB / 479.5 MB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.5984, allocations: 67.02 kB / 479.6 MB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/0.5987, allocations: 116 kB / 479.7 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.5987, allocations: 11.34 kB / 479.7 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.704e-05/0.5987, allocations: 1.656 kB / 479.7 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.5987, allocations: 6.609 kB / 479.7 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/0.6116, allocations: 5.229 MB / 485 MB, free: 39.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.306e-05/0.6117, allocations: 19.94 kB / 485 MB, free: 39.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.6135, allocations: 354.3 kB / 485.3 MB, free: 39.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.291e-05/0.6135, allocations: 28.98 kB / 485.4 MB, free: 39.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/0.6137, allocations: 52.53 kB / 485.4 MB, free: 39.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.776e-05/0.6137, allocations: 41.03 kB / 485.5 MB, free: 39.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.534e-05/0.6138, allocations: 36.16 kB / 485.5 MB, free: 39.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007949/0.6217, allocations: 3.077 MB / 488.6 MB, free: 38.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006895/0.6224, allocations: 237.8 kB / 488.8 MB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001836/0.6226, allocations: 55.61 kB / 488.9 MB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.6242, allocations: 194.7 kB / 489.1 MB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000555/0.6247, allocations: 213.8 kB / 489.3 MB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.6249, allocations: 61.52 kB / 489.3 MB, free: 37.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000391/0.6253, allocations: 264.2 kB / 489.6 MB, free: 37.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6253, allocations: 0 / 489.6 MB, free: 37.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001811/0.6271, allocations: 229.4 kB / 489.8 MB, free: 37.67 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.0002686/0.6274, allocations: 175.4 kB / 490 MB, free: 37.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007412/0.6348, allocations: 2.336 MB / 492.3 MB, free: 36.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.029e-05/0.6348, allocations: 7.344 kB / 492.3 MB, free: 36.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003803/0.6386, allocations: 1.068 MB / 493.4 MB, free: 36.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.6406, allocations: 162.9 kB / 493.5 MB, free: 36.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005096/0.6457, allocations: 2.201 MB / 495.7 MB, free: 34.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006238/0.6464, allocations: 0.9271 MB / 496.7 MB, free: 33.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001527/0.6479, allocations: 195.9 kB / 496.9 MB, free: 33.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006004/0.6485, allocations: 68.06 kB / 496.9 MB, free: 33.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6485, allocations: 0 / 496.9 MB, free: 33.76 MB / 382.1 MB Notification: Performance of Templates: time 0.02875/0.6773, allocations: 15.24 MB / 0.5002 GB, free: 22.68 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches