Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002307/0.002307, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.979/1.979, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 90.69 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2855/0.2855, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.043e-05/4.056e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 58.87 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5057/0.6237, allocations: 88.1 MB / 0.5588 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.624, allocations: 60.59 kB / 0.5589 GB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06077/0.6848, allocations: 11.73 MB / 0.5703 GB, free: 5.477 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.6849, allocations: 7.984 kB / 0.5704 GB, free: 5.469 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.69e-05/0.6849, allocations: 12 kB / 0.5704 GB, free: 5.457 MB / 378.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.003706/0.6886, allocations: 0.8918 MB / 0.5712 GB, free: 4.555 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.6887, allocations: 16.02 kB / 0.5713 GB, free: 4.539 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002902/0.689, allocations: 60.12 kB / 0.5713 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008146/0.6898, allocations: 359.3 kB / 0.5717 GB, free: 4.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006095/0.6905, allocations: 273.9 kB / 0.5719 GB, free: 3.844 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.6906, allocations: 50.97 kB / 0.572 GB, free: 3.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.6923, allocations: 0.6203 MB / 0.5726 GB, free: 3.344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/0.6923, allocations: 0 / 0.5726 GB, free: 3.344 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-05/0.6924, allocations: 21.44 kB / 0.5726 GB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.6925, allocations: 12 kB / 0.5726 GB, free: 3.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.6948, allocations: 0.8267 MB / 0.5734 GB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004845/0.6997, allocations: 2.074 MB / 0.5754 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.7022, allocations: 0.5918 MB / 0.576 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009249/0.7032, allocations: 312 kB / 0.5763 GB, free: 360 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.7034, allocations: 8.562 kB / 0.5763 GB, free: 352 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.7034, allocations: 43.11 kB / 0.5764 GB, free: 304 kB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 3.557e-06/0.7035, allocations: 0 / 0.5764 GB, free: 304 kB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.03945/0.7429, allocations: 7.415 MB / 0.5836 GB, free: 10.76 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.743, allocations: 90.23 kB / 0.5837 GB, free: 10.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007161/0.7438, allocations: 360.2 kB / 0.584 GB, free: 10.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003054/0.7441, allocations: 47.39 kB / 0.5841 GB, free: 10.32 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.7443, allocations: 275.2 kB / 0.5843 GB, free: 10.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005597/0.7449, allocations: 408.7 kB / 0.5847 GB, free: 9.734 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/0.7451, allocations: 20.69 kB / 0.5847 GB, free: 9.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.7453, allocations: 359.8 kB / 0.5851 GB, free: 9.391 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002759/0.7481, allocations: 0.9658 MB / 0.586 GB, free: 8.914 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003117/0.7512, allocations: 1.123 MB / 0.5871 GB, free: 8.266 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002469/0.7538, allocations: 0.8294 MB / 0.5879 GB, free: 7.812 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.7538, allocations: 0 / 0.5879 GB, free: 7.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.006319/0.7601, allocations: 2.073 MB / 0.59 GB, free: 6.621 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.7602, allocations: 16 kB / 0.59 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.7603, allocations: 4 kB / 0.59 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.775e-05/0.7603, allocations: 8 kB / 0.59 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005695/0.766, allocations: 470.7 kB / 0.5904 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.768e-05/0.7661, allocations: 8 kB / 0.5904 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004213/0.7703, allocations: 285.9 kB / 0.5907 GB, free: 5.879 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003495/0.7707, allocations: 34.75 kB / 0.5907 GB, free: 5.852 MB / 394.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 () * 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.0005777/0.7713, allocations: 185.3 kB / 0.5909 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003687/0.7717, allocations: 59.25 kB / 0.591 GB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000347/0.7721, allocations: 113.7 kB / 0.5911 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.7721, allocations: 12 kB / 0.5911 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.7721, allocations: 0 / 0.5911 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.7721, allocations: 3.984 kB / 0.5911 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/0.7882, allocations: 4.78 MB / 0.5958 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-05/0.7883, allocations: 20 kB / 0.5958 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003328/0.7916, allocations: 416.1 kB / 0.5962 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-05/0.7917, allocations: 31.94 kB / 0.5962 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002298/0.7919, allocations: 48 kB / 0.5963 GB, free: 1.059 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.532e-05/0.792, allocations: 47.84 kB / 0.5963 GB, free: 1.012 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-05/0.792, allocations: 31.88 kB / 0.5963 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00592/0.798, allocations: 3.315 MB / 0.5996 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007546/0.7988, allocations: 248.3 kB / 0.5998 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002128/0.799, allocations: 55.97 kB / 0.5999 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002681/0.8017, allocations: 251.8 kB / 0.6001 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008966/0.8027, allocations: 239.2 kB / 0.6003 GB, free: 12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.8029, allocations: 59.98 kB / 0.6004 GB, free: 11.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00056/0.8034, allocations: 266.1 kB / 0.6006 GB, free: 11.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.8034, allocations: 4 kB / 0.6007 GB, free: 11.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001652/0.8051, allocations: 243.9 kB / 0.6009 GB, free: 11.44 MB / 410.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 () * 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.0003555/0.8055, allocations: 161.3 kB / 0.601 GB, free: 11.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004971/0.8105, allocations: 1.692 MB / 0.6027 GB, free: 9.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.007e-05/0.8106, allocations: 4.625 kB / 0.6027 GB, free: 9.586 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003505/0.8141, allocations: 0.784 MB / 0.6035 GB, free: 8.805 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.8155, allocations: 132.1 kB / 0.6036 GB, free: 8.676 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/0.8209, allocations: 1.764 MB / 0.6053 GB, free: 6.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007708/0.8217, allocations: 0.9398 MB / 0.6062 GB, free: 5.625 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/0.8231, allocations: 79.41 kB / 0.6063 GB, free: 5.547 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8231, allocations: 0 / 0.6063 GB, free: 5.547 MB / 410.7 MB Notification: Performance of Templates: time 0.03272/0.8559, allocations: 13.73 MB / 0.6197 GB, free: 7.812 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches