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/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_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") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009063/0.0009064, allocations: 187.8 kB / 7.804 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9927/0.9927, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.000782/0.000782, allocations: 90.84 kB / 261.4 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1477/0.1477, allocations: 43.5 MB / 352.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.712e-06/6.843e-06, allocations: 8 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2412, allocations: 58.83 MB / 476.6 MB, free: 5.297 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.3487, allocations: 87.37 MB / 0.5507 GB, free: 11.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.3489, allocations: 63.97 kB / 0.5508 GB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03283/0.3818, allocations: 11.4 MB / 0.5619 GB, free: 180 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.3818, allocations: 12 kB / 0.5619 GB, free: 168 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.00193/0.3838, allocations: 0.9351 MB / 0.5628 GB, free: 15.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3838, allocations: 15.95 kB / 0.5628 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.3839, allocations: 63.44 kB / 0.5629 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004669/0.3844, allocations: 365.6 kB / 0.5632 GB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/0.3847, allocations: 259.1 kB / 0.5635 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.976e-05/0.3848, allocations: 28 kB / 0.5635 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001264/0.3861, allocations: 0.8064 MB / 0.5643 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008512/0.387, allocations: 0.5726 MB / 0.5649 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.387, allocations: 3.906 kB / 0.5649 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.387, allocations: 0 / 0.5649 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3871, allocations: 12 kB / 0.5649 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.3897, allocations: 2.012 MB / 0.5668 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.3907, allocations: 456.8 kB / 0.5673 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004208/0.3911, allocations: 298.8 kB / 0.5676 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.212e-05/0.3912, allocations: 4.562 kB / 0.5676 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.3913, allocations: 51 kB / 0.5676 GB, free: 10.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.823e-06/0.3913, allocations: 0 / 0.5676 GB, free: 10.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.02019/0.4115, allocations: 7.182 MB / 0.5746 GB, free: 2.699 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.4116, allocations: 98.09 kB / 0.5747 GB, free: 2.586 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004218/0.412, allocations: 357.9 kB / 0.5751 GB, free: 2.234 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.4121, allocations: 25.7 kB / 0.5751 GB, free: 2.203 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/0.4122, allocations: 181.1 kB / 0.5753 GB, free: 2.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.4126, allocations: 390.1 kB / 0.5756 GB, free: 1.633 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.4127, allocations: 0 / 0.5756 GB, free: 1.633 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4128, allocations: 374.8 kB / 0.576 GB, free: 1.258 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.4143, allocations: 0.9517 MB / 0.5769 GB, free: 316 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.4158, allocations: 1.089 MB / 0.578 GB, free: 15.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.417, allocations: 0.8112 MB / 0.5788 GB, free: 14.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.417, allocations: 0 / 0.5788 GB, free: 14.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003172/0.4202, allocations: 2.045 MB / 0.5808 GB, free: 12.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.4203, allocations: 4 kB / 0.5808 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4203, allocations: 4 kB / 0.5808 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.4203, allocations: 8 kB / 0.5808 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/0.4232, allocations: 491.6 kB / 0.5813 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.4232, allocations: 8 kB / 0.5813 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/0.4252, allocations: 283.7 kB / 0.5815 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/0.4254, allocations: 39.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.0003205/0.4257, allocations: 134 kB / 0.5817 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.4259, allocations: 67.25 kB / 0.5818 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.4261, allocations: 60.72 kB / 0.5818 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.4261, allocations: 19.98 kB / 0.5819 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.4261, allocations: 0 / 0.5819 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.4261, allocations: 3.984 kB / 0.5819 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008031/0.4342, allocations: 4.737 MB / 0.5865 GB, free: 6.094 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/0.4342, allocations: 24.06 kB / 0.5865 GB, free: 6.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/0.4358, allocations: 439.4 kB / 0.5869 GB, free: 5.641 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-05/0.4358, allocations: 35.91 kB / 0.587 GB, free: 5.605 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.705e-05/0.4359, allocations: 28 kB / 0.587 GB, free: 5.578 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.76e-05/0.4359, allocations: 39.86 kB / 0.587 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.055e-05/0.436, allocations: 35.81 kB / 0.5871 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003177/0.4391, allocations: 3.247 MB / 0.5902 GB, free: 1.395 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003526/0.4395, allocations: 248.3 kB / 0.5905 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.4397, allocations: 35.97 kB / 0.5905 GB, free: 1.098 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.4411, allocations: 259.8 kB / 0.5907 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/0.4415, allocations: 223.2 kB / 0.591 GB, free: 0.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/0.4416, allocations: 56 kB / 0.591 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002833/0.4419, allocations: 264.6 kB / 0.5913 GB, free: 320 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009689/0.4428, allocations: 195.9 kB / 0.5915 GB, free: 124 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.0002588/0.4431, allocations: 149.5 kB / 0.5916 GB, free: 15.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.4456, allocations: 1.632 MB / 0.5932 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.4456, allocations: 8.062 kB / 0.5932 GB, free: 14.33 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.4474, allocations: 0.7389 MB / 0.5939 GB, free: 13.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007953/0.4482, allocations: 120.7 kB / 0.594 GB, free: 13.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.4516, allocations: 1.675 MB / 0.5957 GB, free: 11.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/0.4528, allocations: 1.025 MB / 0.5967 GB, free: 10.44 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4528, allocations: 0 / 0.5967 GB, free: 10.44 MB / 442.7 MB Notification: Performance of Templates: time 0.02619/0.479, allocations: 17.61 MB / 0.6139 GB, free: 8.828 MB / 458.7 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