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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001593, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.2 MB / 241 MB, free: 10.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008157/0.0008156, allocations: 96.11 kB / 292.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2956/0.2956, allocations: 44.22 MB / 387.5 MB, free: 38.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003431, allocations: 19.98 kB / 459.9 MB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3296, allocations: 61.89 MB / 0.5096 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1076/0.4372, allocations: 89.25 MB / 0.5967 GB, free: 5.875 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4375, allocations: 63.97 kB / 0.5968 GB, free: 5.812 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03384/0.4713, allocations: 11.88 MB / 0.6084 GB, free: 9.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4714, allocations: 0 / 0.6084 GB, free: 9.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.265e-05/0.4714, allocations: 12 kB / 0.6084 GB, free: 9.898 MB / 426.7 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.002009/0.4734, allocations: 0.9352 MB / 0.6093 GB, free: 8.914 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4735, allocations: 12.5 kB / 0.6093 GB, free: 8.902 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.4736, allocations: 59.44 kB / 0.6094 GB, free: 8.844 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.4742, allocations: 370.7 kB / 0.6097 GB, free: 8.445 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003684/0.4746, allocations: 275.1 kB / 0.61 GB, free: 8.137 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.4747, allocations: 44 kB / 0.61 GB, free: 8.094 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.4768, allocations: 0.8672 MB / 0.6109 GB, free: 7.188 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.4768, allocations: 7.969 kB / 0.6109 GB, free: 7.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.4769, allocations: 20 kB / 0.6109 GB, free: 7.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.4769, allocations: 12 kB / 0.6109 GB, free: 7.148 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003383/0.4803, allocations: 1.337 MB / 0.6122 GB, free: 5.812 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002881/0.4832, allocations: 2.08 MB / 0.6142 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.4858, allocations: 0.8696 MB / 0.6151 GB, free: 2.754 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-05/0.4859, allocations: 12.55 kB / 0.6151 GB, free: 2.742 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.486, allocations: 39.12 kB / 0.6151 GB, free: 2.695 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.926e-06/0.486, allocations: 7.938 kB / 0.6152 GB, free: 2.688 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.08788/0.5739, allocations: 18.29 MB / 0.633 GB, free: 244 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.414e-05/0.574, allocations: 102.2 kB / 0.6331 GB, free: 120 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005708/0.5746, allocations: 376.5 kB / 0.6335 GB, free: 15.74 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000196/0.5748, allocations: 45.7 kB / 0.6335 GB, free: 15.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.5749, allocations: 213.2 kB / 0.6337 GB, free: 15.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004006/0.5753, allocations: 402.1 kB / 0.6341 GB, free: 15.08 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.5755, allocations: 20 kB / 0.6341 GB, free: 15.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.5756, allocations: 374.8 kB / 0.6345 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003407/0.579, allocations: 1.47 MB / 0.6359 GB, free: 13.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003459/0.5825, allocations: 1.607 MB / 0.6375 GB, free: 11.56 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/0.5858, allocations: 1.316 MB / 0.6388 GB, free: 10.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5858, allocations: 0 / 0.6388 GB, free: 10.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00722/0.593, allocations: 3.072 MB / 0.6418 GB, free: 7.164 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.5931, allocations: 4 kB / 0.6418 GB, free: 7.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.5931, allocations: 7.984 kB / 0.6418 GB, free: 7.152 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.5932, allocations: 8 kB / 0.6418 GB, free: 7.145 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/0.5959, allocations: 467.6 kB / 0.6422 GB, free: 6.688 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.713e-05/0.5959, allocations: 11.94 kB / 0.6422 GB, free: 6.676 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.598, allocations: 287.6 kB / 0.6425 GB, free: 6.395 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.5982, allocations: 43.98 kB / 0.6426 GB, free: 6.352 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,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 (150): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005084/0.5987, allocations: 233.5 kB / 0.6428 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.5989, allocations: 63.19 kB / 0.6428 GB, free: 6.051 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.5992, allocations: 112.7 kB / 0.6429 GB, free: 5.938 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.5992, allocations: 12 kB / 0.643 GB, free: 5.926 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.5992, allocations: 0 / 0.643 GB, free: 5.926 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.5992, allocations: 7.969 kB / 0.643 GB, free: 5.918 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.6104, allocations: 5.594 MB / 0.6484 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/0.6105, allocations: 24.03 kB / 0.6485 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.6119, allocations: 411.4 kB / 0.6488 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.874e-05/0.612, allocations: 32 kB / 0.6489 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.774e-05/0.6121, allocations: 48 kB / 0.6489 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-05/0.6121, allocations: 47.73 kB / 0.649 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.096e-05/0.6121, allocations: 39.88 kB / 0.649 GB, free: 15.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007659/0.6198, allocations: 4.526 MB / 0.6534 GB, free: 10 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005146/0.6204, allocations: 244.3 kB / 0.6537 GB, free: 9.742 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.6205, allocations: 59.92 kB / 0.6537 GB, free: 9.684 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.6218, allocations: 251.8 kB / 0.654 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004245/0.6222, allocations: 235.3 kB / 0.6542 GB, free: 9.207 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.764e-05/0.6223, allocations: 55.98 kB / 0.6542 GB, free: 9.152 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003383/0.6226, allocations: 279.1 kB / 0.6545 GB, free: 8.879 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6227, allocations: 0 / 0.6545 GB, free: 8.879 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009794/0.6236, allocations: 244 kB / 0.6547 GB, free: 8.641 MB / 474.7 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002405/0.6239, allocations: 183.7 kB / 0.6549 GB, free: 8.449 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006082/0.63, allocations: 2.586 MB / 0.6574 GB, free: 5.867 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/0.63, allocations: 3.938 kB / 0.6574 GB, free: 5.863 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003313/0.6333, allocations: 1.194 MB / 0.6586 GB, free: 4.676 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009431/0.6343, allocations: 126.7 kB / 0.6587 GB, free: 4.555 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/0.6381, allocations: 2.161 MB / 0.6608 GB, free: 2.074 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.6387, allocations: 0.9437 MB / 0.6618 GB, free: 1.102 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001352/0.6401, allocations: 198.1 kB / 0.6619 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005491/0.6406, allocations: 63.42 kB / 0.662 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6406, allocations: 0 / 0.662 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of Templates: time 0.02359/0.6642, allocations: 14.82 MB / 0.6765 GB, free: 2.055 MB / 490.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches