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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 176.4 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.3 MB / 241.4 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000786/0.000786, allocations: 92.92 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003201, allocations: 19.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1968, allocations: 50.41 MB / 402.8 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1091/0.306, allocations: 101.6 MB / 0.4925 GB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.3063, allocations: 91.94 kB / 0.4926 GB, free: 10.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4511/0.7574, allocations: 126.6 MB / 0.6162 GB, free: 12.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.208e-06/0.7575, allocations: 7.984 kB / 0.6162 GB, free: 12.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003703/0.7578, allocations: 112 kB / 0.6164 GB, free: 12.16 MB / 394.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.02106/0.7789, allocations: 6.533 MB / 0.6227 GB, free: 5.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.779, allocations: 12.02 kB / 0.6227 GB, free: 5.527 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02701/0.806, allocations: 6.664 MB / 0.6293 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01473/0.8208, allocations: 5.839 MB / 0.635 GB, free: 8.945 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005972/0.8214, allocations: 452.1 kB / 0.6354 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003886/0.8253, allocations: 0.5976 MB / 0.636 GB, free: 7.906 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03474/0.8601, allocations: 15.59 MB / 0.6512 GB, free: 7.148 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003813/0.8605, allocations: 83.52 kB / 0.6513 GB, free: 7.066 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002591/0.8631, allocations: 283.8 kB / 0.6515 GB, free: 6.789 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002465/0.8656, allocations: 1.624 MB / 0.6531 GB, free: 5.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2277/1.093, allocations: 13.79 MB / 0.6666 GB, free: 68.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06576/1.159, allocations: 63.96 MB / 0.7291 GB, free: 33.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/1.171, allocations: 6.347 MB / 0.7353 GB, free: 30.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003843/1.175, allocations: 3.494 MB / 0.7387 GB, free: 28.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01824/1.193, allocations: 14.19 MB / 0.7525 GB, free: 21.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/1.193, allocations: 62.75 kB / 0.7526 GB, free: 21.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.512e-06/1.193, allocations: 3.219 kB / 0.7526 GB, free: 21.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1237/1.317, allocations: 41.39 MB / 0.793 GB, free: 13.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/1.317, allocations: 213.9 kB / 0.7932 GB, free: 12.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009709/1.327, allocations: 5.415 MB / 0.7985 GB, free: 8.484 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000847/1.328, allocations: 65.7 kB / 0.7986 GB, free: 8.414 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003732/1.331, allocations: 4.437 MB / 0.8029 GB, free: 4.055 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001627/1.333, allocations: 1.244 MB / 0.8041 GB, free: 2.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008757/1.334, allocations: 170.7 kB / 0.8043 GB, free: 2.656 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007151/1.335, allocations: 0.6859 MB / 0.805 GB, free: 1.961 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006801/1.341, allocations: 4.542 MB / 0.8094 GB, free: 13.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01116/1.353, allocations: 9.529 MB / 0.8187 GB, free: 1.516 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2371/1.59, allocations: 15.14 MB / 0.8335 GB, free: 108.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002689/1.59, allocations: 52.25 kB / 0.8335 GB, free: 108.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.03968/1.63, allocations: 18.68 MB / 0.8518 GB, free: 108 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002204/1.63, allocations: 81.5 kB / 0.8518 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003076/1.63, allocations: 172 kB / 0.852 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01917/1.65, allocations: 5.616 MB / 0.8575 GB, free: 108 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007161/1.657, allocations: 2.046 MB / 0.8595 GB, free: 107.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02609/1.683, allocations: 23.66 MB / 0.8826 GB, free: 101.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00714/1.69, allocations: 0.5376 MB / 0.8831 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001732/1.692, allocations: 0.5116 MB / 0.8836 GB, free: 101.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1060): * Single equations (assignments): 1052 * 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.00633/1.698, allocations: 3.096 MB / 0.8866 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/1.699, allocations: 0.4922 MB / 0.8871 GB, free: 100.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02634/1.726, allocations: 12.35 MB / 0.8992 GB, free: 96.46 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.224e-05/1.726, allocations: 66.84 kB / 0.8992 GB, free: 96.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-05/1.726, allocations: 7.781 kB / 0.8993 GB, free: 96.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.676e-05/1.726, allocations: 14.39 kB / 0.8993 GB, free: 96.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04466/1.771, allocations: 23.92 MB / 0.9226 GB, free: 82.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.572e-05/1.771, allocations: 10.73 kB / 0.9226 GB, free: 82.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002829/1.774, allocations: 0.5729 MB / 0.9232 GB, free: 82.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01597/1.79, allocations: 4.645 MB / 0.9277 GB, free: 79.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006162/1.79, allocations: 59.91 kB / 0.9278 GB, free: 79.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01959/1.81, allocations: 18.95 MB / 0.9463 GB, free: 62.05 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.81, allocations: 8 kB / 0.9463 GB, free: 62.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03027/1.84, allocations: 16.65 MB / 0.9626 GB, free: 45.42 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/1.842, allocations: 0.5448 MB / 0.9631 GB, free: 44.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00166/1.843, allocations: 52 kB / 0.9631 GB, free: 44.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003777/1.847, allocations: 243.6 kB / 0.9634 GB, free: 44.57 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/1.848, allocations: 193 kB / 0.9636 GB, free: 44.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000462/1.849, allocations: 86.8 kB / 0.9636 GB, free: 44.31 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006306/1.855, allocations: 3.354 MB / 0.9669 GB, free: 40.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.855, allocations: 2.078 kB / 0.9669 GB, free: 40.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008234/1.863, allocations: 1.703 MB / 0.9686 GB, free: 39.28 MB / 474.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * 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.0008446/1.864, allocations: 222.6 kB / 0.9688 GB, free: 39.08 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01416/1.878, allocations: 10.45 MB / 0.979 GB, free: 28.69 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/1.878, allocations: 4 kB / 0.979 GB, free: 28.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005253/1.884, allocations: 3.944 MB / 0.9828 GB, free: 24.72 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007967/1.892, allocations: 0.6255 MB / 0.9835 GB, free: 24.13 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02628/1.918, allocations: 18.35 MB / 1.001 GB, free: 5.949 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2246/2.143, allocations: 4.627 MB / 1.006 GB, free: 101.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008878/2.152, allocations: 2.977 MB / 1.009 GB, free: 101.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001998/2.154, allocations: 358.1 kB / 1.009 GB, free: 101.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/2.154, allocations: 0 / 1.009 GB, free: 101.2 MB / 474.7 MB Notification: Performance of Templates: time 0.1135/2.267, allocations: 73.47 MB / 1.081 GB, free: 82.8 MB / 474.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/jenkins1/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