Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001141/0.001141, allocations: 195.2 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008697/0.0008698, allocations: 89.31 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.248e-06/9.278e-06, allocations: 0 / 343.1 MB, free: 8.594 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 51.47 MB / 394.6 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3275/0.4377, allocations: 101.3 MB / 495.9 MB, free: 8.074 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.4381, allocations: 85.08 kB / 496 MB, free: 8.031 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5456/0.9837, allocations: 126.6 MB / 0.608 GB, free: 74.97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004734/0.9842, allocations: 116 kB / 0.6081 GB, free: 74.96 MB / 442.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.02038/1.005, allocations: 6.179 MB / 0.6141 GB, free: 72.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/1.005, allocations: 7.562 kB / 0.6141 GB, free: 72.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0317/1.036, allocations: 7.63 MB / 0.6216 GB, free: 72.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01669/1.053, allocations: 6.354 MB / 0.6278 GB, free: 71.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003513/1.054, allocations: 190.7 kB / 0.628 GB, free: 71.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003151/1.057, allocations: 350.3 kB / 0.6283 GB, free: 71.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02175/1.078, allocations: 10.39 MB / 0.6385 GB, free: 69.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03331/1.112, allocations: 14.33 MB / 0.6525 GB, free: 62.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004899/1.112, allocations: 75.06 kB / 0.6525 GB, free: 62.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003145/1.115, allocations: 40.03 kB / 0.6526 GB, free: 62.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002845/1.118, allocations: 1.722 MB / 0.6542 GB, free: 61.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07814/1.197, allocations: 62.39 MB / 0.7152 GB, free: 16.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006024/1.203, allocations: 4.617 MB / 0.7197 GB, free: 11.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004482/1.207, allocations: 3.559 MB / 0.7232 GB, free: 8.492 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02527/1.232, allocations: 15.39 MB / 0.7382 GB, free: 10.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/1.233, allocations: 64.12 kB / 0.7382 GB, free: 10.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=292): time 5.911e-06/1.233, allocations: 0 / 0.7382 GB, free: 10.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=342): time 0.2803/1.513, allocations: 28.98 MB / 0.7665 GB, free: 134.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.182e-05/1.513, allocations: 216.6 kB / 0.7668 GB, free: 134.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009633/1.523, allocations: 4.341 MB / 0.771 GB, free: 133.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009154/1.524, allocations: 25.7 kB / 0.771 GB, free: 133.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002922/1.527, allocations: 4.181 MB / 0.7751 GB, free: 131.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001819/1.528, allocations: 1.226 MB / 0.7763 GB, free: 130.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009498/1.529, allocations: 0 / 0.7763 GB, free: 130.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005801/1.53, allocations: 0.6989 MB / 0.777 GB, free: 130.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006065/1.536, allocations: 4.525 MB / 0.7814 GB, free: 130 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008335/1.544, allocations: 9.727 MB / 0.7909 GB, free: 123.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009278/1.554, allocations: 6.589 MB / 0.7973 GB, free: 121.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001856/1.554, allocations: 56.59 kB / 0.7974 GB, free: 121.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.04234/1.596, allocations: 17.64 MB / 0.8146 GB, free: 116.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/1.596, allocations: 12.03 kB / 0.8146 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004395/1.597, allocations: 184.5 kB / 0.8148 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02305/1.62, allocations: 5.338 MB / 0.82 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008359/1.628, allocations: 2.085 MB / 0.822 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02511/1.653, allocations: 20.89 MB / 0.8425 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008468/1.662, allocations: 319.9 kB / 0.8428 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002304/1.664, allocations: 0.5341 MB / 0.8433 GB, free: 105.9 MB / 458.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.002846/1.667, allocations: 0.5563 MB / 0.8438 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/1.668, allocations: 487 kB / 0.8443 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02983/1.698, allocations: 11.99 MB / 0.856 GB, free: 99.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001202/1.698, allocations: 46.77 kB / 0.856 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.906e-05/1.698, allocations: 8.609 kB / 0.8561 GB, free: 99.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.689e-05/1.699, allocations: 22.02 kB / 0.8561 GB, free: 99.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04594/1.744, allocations: 22.41 MB / 0.878 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-05/1.745, allocations: 4 kB / 0.878 GB, free: 80.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003399/1.748, allocations: 0.5177 MB / 0.8785 GB, free: 80.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01914/1.767, allocations: 4.321 MB / 0.8827 GB, free: 77.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006866/1.768, allocations: 11.23 kB / 0.8827 GB, free: 77.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01937/1.787, allocations: 16.82 MB / 0.8991 GB, free: 61.53 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.994e-06/1.787, allocations: 7.938 kB / 0.8991 GB, free: 61.52 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03035/1.818, allocations: 17.17 MB / 0.9159 GB, free: 44.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.819, allocations: 0.4948 MB / 0.9164 GB, free: 43.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009824/1.82, allocations: 11.98 kB / 0.9164 GB, free: 43.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002661/1.823, allocations: 133.7 kB / 0.9165 GB, free: 43.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004414/1.823, allocations: 156.7 kB / 0.9167 GB, free: 43.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/1.823, allocations: 80 kB / 0.9168 GB, free: 43.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.003692/1.827, allocations: 2.904 MB / 0.9196 GB, free: 40.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006727/1.834, allocations: 1.475 MB / 0.921 GB, free: 38.82 MB / 458.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.0005505/1.834, allocations: 178.8 kB / 0.9212 GB, free: 38.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01178/1.846, allocations: 10.24 MB / 0.9312 GB, free: 28.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.846, allocations: 0 / 0.9312 GB, free: 28.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1581/2.004, allocations: 3.865 MB / 0.935 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004515/2.009, allocations: 466.8 kB / 0.9354 GB, free: 125.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04111/2.05, allocations: 13.64 MB / 0.9487 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01295/2.063, allocations: 5.132 MB / 0.9538 GB, free: 122.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.854e-06/2.063, allocations: 0 / 0.9538 GB, free: 122.4 MB / 458.7 MB Notification: Performance of Templates: time 0.1947/2.258, allocations: 76.97 MB / 1.029 GB, free: 103.9 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches