Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001659/0.001659, allocations: 177.1 kB / 8.151 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.824/1.824, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001251/0.00125, allocations: 96.22 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2627/0.2627, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.716e-06/8.806e-06, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2737, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1558/0.4296, allocations: 87.37 MB / 0.5507 GB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.4299, allocations: 63.47 kB / 0.5507 GB, free: 11.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05978/0.4896, allocations: 11.41 MB / 0.5619 GB, free: 208 kB / 394.7 MB Notification: Performance of Transformations before backend: time 3.602e-05/0.4897, allocations: 12 kB / 0.5619 GB, free: 196 kB / 394.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.003926/0.4937, allocations: 0.935 MB / 0.5628 GB, free: 15.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4937, allocations: 8.031 kB / 0.5628 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.494, allocations: 63.44 kB / 0.5629 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008825/0.4948, allocations: 369.7 kB / 0.5632 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000596/0.4955, allocations: 263.1 kB / 0.5635 GB, free: 14.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.4956, allocations: 24 kB / 0.5635 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002508/0.4981, allocations: 0.8025 MB / 0.5643 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.4997, allocations: 0.5648 MB / 0.5648 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/0.4997, allocations: 11.84 kB / 0.5649 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.4999, allocations: 0 / 0.5649 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.4999, allocations: 12 kB / 0.5649 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004911/0.5048, allocations: 2.012 MB / 0.5668 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002136/0.507, allocations: 462 kB / 0.5673 GB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008742/0.5079, allocations: 298.8 kB / 0.5676 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.508, allocations: 12.55 kB / 0.5676 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.5081, allocations: 43.12 kB / 0.5676 GB, free: 10.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 5.42e-06/0.5081, allocations: 0 / 0.5676 GB, free: 10.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04232/0.5504, allocations: 7.191 MB / 0.5746 GB, free: 2.723 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.5505, allocations: 90.11 kB / 0.5747 GB, free: 2.617 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007385/0.5513, allocations: 357.8 kB / 0.5751 GB, free: 2.266 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002936/0.5516, allocations: 25.7 kB / 0.5751 GB, free: 2.234 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.5518, allocations: 235.5 kB / 0.5753 GB, free: 2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000787/0.5526, allocations: 386.1 kB / 0.5757 GB, free: 1.617 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/0.553, allocations: 3.938 kB / 0.5757 GB, free: 1.613 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002377/0.5532, allocations: 358.8 kB / 0.576 GB, free: 1.254 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004015/0.5572, allocations: 0.9517 MB / 0.577 GB, free: 312 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004335/0.5616, allocations: 1.093 MB / 0.578 GB, free: 15.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003719/0.5654, allocations: 0.8123 MB / 0.5788 GB, free: 14.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.659e-06/0.5655, allocations: 0 / 0.5788 GB, free: 14.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00923/0.5747, allocations: 2.03 MB / 0.5808 GB, free: 12.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.5748, allocations: 4 kB / 0.5808 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.5748, allocations: 4 kB / 0.5808 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.485e-05/0.5749, allocations: 8 kB / 0.5808 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008347/0.5832, allocations: 487.7 kB / 0.5813 GB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.253e-05/0.5833, allocations: 16 kB / 0.5813 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005954/0.5893, allocations: 283.7 kB / 0.5816 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005252/0.5899, allocations: 43.98 kB / 0.5816 GB, free: 11.49 MB / 426.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.0007138/0.5906, allocations: 54.8 kB / 0.5817 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/0.5912, allocations: 67.16 kB / 0.5817 GB, free: 11.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.5915, allocations: 64.72 kB / 0.5818 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.429e-05/0.5915, allocations: 12 kB / 0.5818 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.5916, allocations: 0 / 0.5818 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/0.5916, allocations: 7.969 kB / 0.5818 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02289/0.6145, allocations: 4.74 MB / 0.5864 GB, free: 6.168 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.123e-05/0.6146, allocations: 20 kB / 0.5864 GB, free: 6.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004513/0.6191, allocations: 431.6 kB / 0.5869 GB, free: 5.727 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.326e-05/0.6192, allocations: 32 kB / 0.5869 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002427/0.6195, allocations: 35.97 kB / 0.5869 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.82e-05/0.6196, allocations: 35.86 kB / 0.587 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.081e-05/0.6196, allocations: 31.88 kB / 0.587 GB, free: 5.594 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007882/0.6275, allocations: 3.251 MB / 0.5902 GB, free: 1.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.6285, allocations: 252.1 kB / 0.5904 GB, free: 1.215 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000316/0.6288, allocations: 35.97 kB / 0.5904 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004161/0.633, allocations: 259.8 kB / 0.5907 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/0.6342, allocations: 215.2 kB / 0.5909 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002544/0.6344, allocations: 63.98 kB / 0.591 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0006824/0.6351, allocations: 264.6 kB / 0.5912 GB, free: 404 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.00161/0.6368, allocations: 192 kB / 0.5914 GB, free: 212 kB / 426.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.0003448/0.6371, allocations: 145.5 kB / 0.5915 GB, free: 60 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005197/0.6424, allocations: 1.627 MB / 0.5931 GB, free: 14.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.383e-05/0.6424, allocations: 4 kB / 0.5931 GB, free: 14.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003836/0.6463, allocations: 0.7543 MB / 0.5939 GB, free: 13.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.6479, allocations: 108 kB / 0.594 GB, free: 13.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006923/0.6549, allocations: 1.725 MB / 0.5956 GB, free: 11.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002284/0.6572, allocations: 1.025 MB / 0.5966 GB, free: 10.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.894e-06/0.6573, allocations: 0 / 0.5966 GB, free: 10.48 MB / 442.7 MB Notification: Performance of Templates: time 0.03239/0.6897, allocations: 13.77 MB / 0.6101 GB, free: 12.68 MB / 458.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/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_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches