Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [: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 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 181.8 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 221.4 MB / 229.9 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009258/0.0009257, allocations: 92.88 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.142e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2178, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.3275, allocations: 100.6 MB / 487.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.3278, allocations: 79.95 kB / 487.6 MB, free: 2.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.438/0.7658, allocations: 124.4 MB / 0.5976 GB, free: 10.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002609/0.7661, allocations: 120 kB / 0.5977 GB, free: 9.898 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0156/0.7817, allocations: 6.146 MB / 0.6037 GB, free: 3.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.7817, allocations: 16.03 kB / 0.6038 GB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.8126, allocations: 7.623 MB / 0.6112 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01852/0.8312, allocations: 7.018 MB / 0.6181 GB, free: 4.938 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002925/0.8315, allocations: 192 kB / 0.6182 GB, free: 4.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002524/0.8341, allocations: 355.8 kB / 0.6186 GB, free: 4.402 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01758/0.8516, allocations: 10.39 MB / 0.6287 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02665/0.8783, allocations: 14.33 MB / 0.6427 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002679/0.8786, allocations: 63.41 kB / 0.6428 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001709/0.8804, allocations: 39.91 kB / 0.6428 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002312/0.8827, allocations: 1.732 MB / 0.6445 GB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1963/1.079, allocations: 62.4 MB / 0.7055 GB, free: 77.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004971/1.084, allocations: 4.614 MB / 0.71 GB, free: 77.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003623/1.088, allocations: 3.561 MB / 0.7134 GB, free: 77.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02037/1.108, allocations: 15.39 MB / 0.7285 GB, free: 72.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/1.108, allocations: 66.06 kB / 0.7285 GB, free: 72.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=292): time 5.691e-06/1.108, allocations: 0 / 0.7285 GB, free: 72.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.06609/1.174, allocations: 28.98 MB / 0.7568 GB, free: 62.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.572e-05/1.174, allocations: 219.9 kB / 0.757 GB, free: 62.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006994/1.181, allocations: 4.342 MB / 0.7613 GB, free: 61.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000714/1.182, allocations: 25.7 kB / 0.7613 GB, free: 61.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002014/1.184, allocations: 4.175 MB / 0.7654 GB, free: 58.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001498/1.186, allocations: 1.225 MB / 0.7666 GB, free: 57.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006353/1.186, allocations: 0 / 0.7666 GB, free: 57.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004178/1.187, allocations: 0.7039 MB / 0.7673 GB, free: 56.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005535/1.192, allocations: 4.53 MB / 0.7717 GB, free: 53.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006747/1.199, allocations: 9.718 MB / 0.7812 GB, free: 42.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007322/1.206, allocations: 6.586 MB / 0.7876 GB, free: 37.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.933e-05/1.206, allocations: 53.31 kB / 0.7877 GB, free: 36.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.04085/1.247, allocations: 17.64 MB / 0.8049 GB, free: 22.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/1.247, allocations: 8 kB / 0.8049 GB, free: 22.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000192/1.248, allocations: 190.3 kB / 0.8051 GB, free: 22.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/1.269, allocations: 5.336 MB / 0.8103 GB, free: 19.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007674/1.277, allocations: 2.088 MB / 0.8123 GB, free: 17.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1442/1.421, allocations: 20.99 MB / 0.8328 GB, free: 98.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007034/1.428, allocations: 308 kB / 0.8331 GB, free: 98.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/1.429, allocations: 0.5347 MB / 0.8336 GB, free: 98.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1114): * Single equations (assignments): 1106 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001317/1.431, allocations: 0.5589 MB / 0.8342 GB, free: 98.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009038/1.432, allocations: 484 kB / 0.8347 GB, free: 98.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02786/1.46, allocations: 12 MB / 0.8464 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/1.46, allocations: 51.31 kB / 0.8464 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/1.46, allocations: 7.344 kB / 0.8464 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.307e-05/1.46, allocations: 20.41 kB / 0.8464 GB, free: 98.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04364/1.503, allocations: 22.41 MB / 0.8683 GB, free: 96.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-05/1.504, allocations: 3.188 kB / 0.8683 GB, free: 96.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/1.507, allocations: 0.5121 MB / 0.8688 GB, free: 96.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01892/1.525, allocations: 4.327 MB / 0.8731 GB, free: 96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006351/1.526, allocations: 10.91 kB / 0.8731 GB, free: 96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/1.546, allocations: 16.82 MB / 0.8895 GB, free: 91.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/1.546, allocations: 11.03 kB / 0.8895 GB, free: 91.46 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03223/1.578, allocations: 17.17 MB / 0.9063 GB, free: 85.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.579, allocations: 0.4993 MB / 0.9068 GB, free: 84.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001094/1.58, allocations: 7.344 kB / 0.9068 GB, free: 84.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002707/1.583, allocations: 127.7 kB / 0.9069 GB, free: 84.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004835/1.583, allocations: 156.9 kB / 0.907 GB, free: 84.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003199/1.584, allocations: 83.31 kB / 0.9071 GB, free: 84.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003943/1.588, allocations: 2.9 MB / 0.9099 GB, free: 83.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006953/1.595, allocations: 1.483 MB / 0.9114 GB, free: 83.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006131/1.595, allocations: 168.1 kB / 0.9116 GB, free: 83.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01253/1.608, allocations: 10.25 MB / 0.9216 GB, free: 79.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.608, allocations: 0 / 0.9216 GB, free: 79.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004732/1.613, allocations: 3.865 MB / 0.9253 GB, free: 75.78 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/1.616, allocations: 450.8 kB / 0.9258 GB, free: 75.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/1.639, allocations: 13.66 MB / 0.9391 GB, free: 63.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006705/1.646, allocations: 5.135 MB / 0.9441 GB, free: 59.27 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/1.646, allocations: 0 / 0.9441 GB, free: 59.27 MB / 426.7 MB Notification: Performance of Templates: time 0.2364/1.883, allocations: 76.98 MB / 1.019 GB, free: 93 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches