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.001397/0.001397, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 90.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2925/0.2925, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.046e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4177, allocations: 58.85 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.5821, allocations: 87.45 MB / 0.5513 GB, free: 11.86 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.5825, allocations: 59.97 kB / 0.5513 GB, free: 11.8 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06073/0.6432, allocations: 11.67 MB / 0.5627 GB, free: 104 kB / 395.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6433, allocations: 0 / 0.5627 GB, free: 104 kB / 395.1 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.6433, allocations: 12 kB / 0.5628 GB, free: 92 kB / 395.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.003706/0.647, allocations: 0.8961 MB / 0.5636 GB, free: 15.15 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.6471, allocations: 11.97 kB / 0.5636 GB, free: 15.14 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/0.6474, allocations: 60.12 kB / 0.5637 GB, free: 15.08 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008457/0.6482, allocations: 362.1 kB / 0.564 GB, free: 14.68 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005635/0.6488, allocations: 255.5 kB / 0.5643 GB, free: 14.4 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.649, allocations: 35.89 kB / 0.5643 GB, free: 14.36 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002364/0.6514, allocations: 0.8031 MB / 0.5651 GB, free: 13.56 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.6531, allocations: 0.5681 MB / 0.5657 GB, free: 12.95 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.6532, allocations: 4 kB / 0.5657 GB, free: 12.95 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.6533, allocations: 0 / 0.5657 GB, free: 12.95 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.6534, allocations: 12 kB / 0.5657 GB, free: 12.93 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005013/0.6584, allocations: 2.003 MB / 0.5676 GB, free: 10.86 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00244/0.6609, allocations: 0.5586 MB / 0.5682 GB, free: 10.28 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008781/0.6618, allocations: 290.8 kB / 0.5685 GB, free: 9.988 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001235/0.6619, allocations: 12.5 kB / 0.5685 GB, free: 9.977 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/0.662, allocations: 43.12 kB / 0.5685 GB, free: 9.926 MB / 411.1 MB Notification: Performance of pre-optimization done (n=66): time 3.647e-06/0.662, allocations: 0 / 0.5685 GB, free: 9.926 MB / 411.1 MB Notification: Performance of matching and sorting (n=122): time 0.03833/0.7004, allocations: 7.113 MB / 0.5755 GB, free: 2.652 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.129e-05/0.7005, allocations: 98.19 kB / 0.5756 GB, free: 2.535 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007136/0.7012, allocations: 350.2 kB / 0.5759 GB, free: 2.188 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000339/0.7016, allocations: 25.7 kB / 0.5759 GB, free: 2.156 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.7018, allocations: 263.5 kB / 0.5762 GB, free: 1.895 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007104/0.7025, allocations: 390.1 kB / 0.5765 GB, free: 1.508 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.7028, allocations: 3.938 kB / 0.5765 GB, free: 1.504 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.703, allocations: 354.8 kB / 0.5769 GB, free: 1.148 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002677/0.7057, allocations: 0.9478 MB / 0.5778 GB, free: 204 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002965/0.7087, allocations: 1.089 MB / 0.5789 GB, free: 15.07 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002374/0.7111, allocations: 0.8086 MB / 0.5797 GB, free: 14.26 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.7112, allocations: 0 / 0.5797 GB, free: 14.26 MB / 427.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.006236/0.7174, allocations: 1.984 MB / 0.5816 GB, free: 12.27 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.7175, allocations: 8 kB / 0.5816 GB, free: 12.26 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.7176, allocations: 0 / 0.5816 GB, free: 12.26 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.361e-05/0.7176, allocations: 12 kB / 0.5816 GB, free: 12.25 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005567/0.7232, allocations: 471.5 kB / 0.5821 GB, free: 11.79 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-05/0.7233, allocations: 8 kB / 0.5821 GB, free: 11.78 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00409/0.7274, allocations: 259.6 kB / 0.5823 GB, free: 11.53 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003449/0.7278, allocations: 47.98 kB / 0.5824 GB, free: 11.48 MB / 427.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: 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.0005633/0.7283, allocations: 128.7 kB / 0.5825 GB, free: 11.35 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003687/0.7287, allocations: 59.25 kB / 0.5825 GB, free: 11.29 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003408/0.7291, allocations: 97.03 kB / 0.5826 GB, free: 11.19 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.887e-05/0.7291, allocations: 12 kB / 0.5826 GB, free: 11.18 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.7291, allocations: 0 / 0.5826 GB, free: 11.18 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.7292, allocations: 7.969 kB / 0.5827 GB, free: 11.17 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01571/0.7449, allocations: 4.557 MB / 0.5871 GB, free: 6.289 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.353e-05/0.745, allocations: 20.97 kB / 0.5871 GB, free: 6.27 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003233/0.7482, allocations: 415.4 kB / 0.5875 GB, free: 5.863 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.966e-05/0.7483, allocations: 32 kB / 0.5875 GB, free: 5.832 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002147/0.7485, allocations: 27.94 kB / 0.5876 GB, free: 5.805 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.982e-05/0.7486, allocations: 39.86 kB / 0.5876 GB, free: 5.766 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.873e-05/0.7487, allocations: 39.77 kB / 0.5877 GB, free: 5.727 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005822/0.7545, allocations: 3.242 MB / 0.5908 GB, free: 1.617 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000793/0.7553, allocations: 248.3 kB / 0.5911 GB, free: 1.355 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.7556, allocations: 31.98 kB / 0.5911 GB, free: 1.324 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002643/0.7582, allocations: 239.7 kB / 0.5913 GB, free: 1.09 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008889/0.7592, allocations: 235.3 kB / 0.5915 GB, free: 0.8594 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/0.7594, allocations: 60 kB / 0.5916 GB, free: 0.8008 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.7599, allocations: 256.6 kB / 0.5918 GB, free: 0.5547 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7599, allocations: 0 / 0.5918 GB, free: 0.5547 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001666/0.7616, allocations: 199.9 kB / 0.592 GB, free: 368 kB / 427.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: 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.0003608/0.762, allocations: 149.6 kB / 0.5922 GB, free: 212 kB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.004577/0.7666, allocations: 1.614 MB / 0.5937 GB, free: 14.59 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-05/0.7666, allocations: 4 kB / 0.5938 GB, free: 14.59 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003372/0.77, allocations: 0.7386 MB / 0.5945 GB, free: 13.85 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.7715, allocations: 113.2 kB / 0.5946 GB, free: 13.74 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.777, allocations: 1.669 MB / 0.5962 GB, free: 11.75 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/0.7778, allocations: 0.944 MB / 0.5971 GB, free: 10.77 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/0.7792, allocations: 71.42 kB / 0.5972 GB, free: 10.7 MB / 443.1 MB Notification: Performance of SimCode: time 8.265e-06/0.7792, allocations: 0 / 0.5972 GB, free: 10.7 MB / 443.1 MB Notification: Performance of Templates: time 0.03425/0.8135, allocations: 13.68 MB / 0.6106 GB, free: 13.01 MB / 459.1 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