Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001485/0.001485, allocations: 172.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009163/0.0009164, allocations: 90.66 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.403e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09431, allocations: 47.57 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3946/0.4889, allocations: 99.67 MB / 469.7 MB, free: 9.883 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.4892, allocations: 87.94 kB / 469.8 MB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5533/1.043, allocations: 126.9 MB / 0.5827 GB, free: 89.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.043, allocations: 4 kB / 0.5828 GB, free: 89.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002552/1.043, allocations: 118.3 kB / 0.5829 GB, free: 89.48 MB / 410.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.01946/1.062, allocations: 6.338 MB / 0.5891 GB, free: 86.56 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/1.062, allocations: 6.906 kB / 0.5891 GB, free: 86.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03115/1.094, allocations: 8.309 MB / 0.5972 GB, free: 83.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01707/1.111, allocations: 7.289 MB / 0.6043 GB, free: 77.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003083/1.111, allocations: 451.8 kB / 0.6047 GB, free: 77.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002808/1.114, allocations: 0.5907 MB / 0.6053 GB, free: 77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03108/1.145, allocations: 15.59 MB / 0.6205 GB, free: 60.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004043/1.145, allocations: 71.34 kB / 0.6206 GB, free: 60.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002778/1.148, allocations: 285.9 kB / 0.6209 GB, free: 60.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002093/1.15, allocations: 1.618 MB / 0.6224 GB, free: 58.45 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02662/1.177, allocations: 13.76 MB / 0.6359 GB, free: 44.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3741/1.551, allocations: 64.08 MB / 0.6985 GB, free: 56.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01465/1.566, allocations: 6.386 MB / 0.7047 GB, free: 55.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00582/1.572, allocations: 3.463 MB / 0.7081 GB, free: 55.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02239/1.594, allocations: 14.32 MB / 0.7221 GB, free: 52.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/1.594, allocations: 60.47 kB / 0.7221 GB, free: 52.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.782e-06/1.594, allocations: 0 / 0.7221 GB, free: 52.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.08178/1.676, allocations: 29.67 MB / 0.7511 GB, free: 46.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.613e-05/1.676, allocations: 215.6 kB / 0.7513 GB, free: 46.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007113/1.683, allocations: 4.799 MB / 0.756 GB, free: 44.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008176/1.684, allocations: 78.95 kB / 0.7561 GB, free: 44.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002459/1.687, allocations: 4.438 MB / 0.7604 GB, free: 40.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001438/1.688, allocations: 1.241 MB / 0.7616 GB, free: 40.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005028/1.689, allocations: 172 kB / 0.7618 GB, free: 39.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003856/1.689, allocations: 0.6825 MB / 0.7624 GB, free: 39.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005626/1.695, allocations: 4.457 MB / 0.7668 GB, free: 37.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007787/1.702, allocations: 9.427 MB / 0.776 GB, free: 29.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008586/1.711, allocations: 6.406 MB / 0.7823 GB, free: 25.99 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000152/1.711, allocations: 54.69 kB / 0.7823 GB, free: 25.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04255/1.754, allocations: 18.51 MB / 0.8004 GB, free: 11.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/1.754, allocations: 81.59 kB / 0.8005 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002982/1.754, allocations: 176 kB / 0.8006 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0207/1.775, allocations: 5.635 MB / 0.8061 GB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00744/1.782, allocations: 2.047 MB / 0.8081 GB, free: 5.801 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03112/1.814, allocations: 23.64 MB / 0.8312 GB, free: 13.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008788/1.822, allocations: 0.5448 MB / 0.8318 GB, free: 13.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/1.824, allocations: 0.5032 MB / 0.8322 GB, free: 12.86 MB / 458.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 () * 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.001913/1.826, allocations: 0.7556 MB / 0.833 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.828, allocations: 0.4974 MB / 0.8335 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03089/1.859, allocations: 12.27 MB / 0.8455 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001123/1.859, allocations: 63.88 kB / 0.8455 GB, free: 15.19 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/1.859, allocations: 12 kB / 0.8455 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.94e-05/1.859, allocations: 11.95 kB / 0.8455 GB, free: 15.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05588/1.915, allocations: 23.86 MB / 0.8688 GB, free: 6.832 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.399e-05/1.915, allocations: 8 kB / 0.8688 GB, free: 6.824 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003617/1.918, allocations: 0.5655 MB / 0.8694 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01864/1.937, allocations: 4.642 MB / 0.8739 GB, free: 1.605 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007471/1.938, allocations: 56 kB / 0.874 GB, free: 1.551 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2912/2.229, allocations: 18.91 MB / 0.8925 GB, free: 147.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/2.229, allocations: 11.03 kB / 0.8925 GB, free: 147.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03075/2.26, allocations: 17.27 MB / 0.9093 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004083/2.264, allocations: 1.217 MB / 0.9105 GB, free: 141.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001563/2.266, allocations: 51.09 kB / 0.9106 GB, free: 141.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003147/2.269, allocations: 255.5 kB / 0.9108 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006868/2.27, allocations: 190.1 kB / 0.911 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002686/2.27, allocations: 89.42 kB / 0.9111 GB, free: 141.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005652/2.275, allocations: 3.329 MB / 0.9143 GB, free: 139.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.264e-06/2.276, allocations: 0 / 0.9143 GB, free: 139.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008097/2.284, allocations: 1.705 MB / 0.916 GB, free: 139.8 MB / 490.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 (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.0006831/2.284, allocations: 215.7 kB / 0.9162 GB, free: 139.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01349/2.298, allocations: 10.33 MB / 0.9263 GB, free: 136.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.298, allocations: 0 / 0.9263 GB, free: 136.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005001/2.303, allocations: 3.906 MB / 0.9301 GB, free: 134.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/2.306, allocations: 0.5759 MB / 0.9307 GB, free: 134.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02171/2.328, allocations: 13.47 MB / 0.9438 GB, free: 129.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004681/2.333, allocations: 4.756 MB / 0.9485 GB, free: 126 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006926/2.34, allocations: 2.986 MB / 0.9514 GB, free: 124.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/2.341, allocations: 348.2 kB / 0.9517 GB, free: 123.9 MB / 490.7 MB Notification: Performance of SimCode: time 5.51e-07/2.341, allocations: 0 / 0.9517 GB, free: 123.9 MB / 490.7 MB Notification: Performance of Templates: time 0.1072/2.448, allocations: 73.39 MB / 1.023 GB, free: 59.18 MB / 490.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches