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.001639/0.001639, allocations: 175.8 kB / 8.696 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008265/0.0008265, allocations: 82.7 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.605e-05, allocations: 0 / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09846, allocations: 47.58 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.369/0.4675, allocations: 99.26 MB / 462.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4678, allocations: 86.45 kB / 462.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5229/0.9907, allocations: 124.5 MB / 0.5732 GB, free: 88.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.9907, allocations: 0 / 0.5732 GB, free: 88.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003786/0.9911, allocations: 119.6 kB / 0.5733 GB, free: 88.97 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.02028/1.011, allocations: 6.328 MB / 0.5795 GB, free: 86.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.011, allocations: 7.188 kB / 0.5795 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03234/1.044, allocations: 8.317 MB / 0.5876 GB, free: 86.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01908/1.063, allocations: 7.273 MB / 0.5947 GB, free: 84.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/1.063, allocations: 194.8 kB / 0.5949 GB, free: 84.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003904/1.067, allocations: 354.4 kB / 0.5952 GB, free: 84.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01956/1.087, allocations: 10.12 MB / 0.6051 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03537/1.122, allocations: 14.08 MB / 0.6188 GB, free: 63.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005162/1.123, allocations: 71.34 kB / 0.6189 GB, free: 63.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003841/1.127, allocations: 36 kB / 0.6189 GB, free: 63.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002387/1.129, allocations: 1.622 MB / 0.6205 GB, free: 61.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07573/1.205, allocations: 61.52 MB / 0.6806 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00852/1.213, allocations: 5.558 MB / 0.686 GB, free: 9.027 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00509/1.219, allocations: 3.372 MB / 0.6893 GB, free: 5.648 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2892/1.508, allocations: 13.99 MB / 0.703 GB, free: 97.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.411e-05/1.508, allocations: 69.28 kB / 0.7031 GB, free: 97.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 9.868e-06/1.508, allocations: 0 / 0.7031 GB, free: 97.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.07293/1.581, allocations: 30.92 MB / 0.7333 GB, free: 91.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/1.581, allocations: 216.6 kB / 0.7335 GB, free: 91.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00712/1.588, allocations: 4.303 MB / 0.7377 GB, free: 90.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009192/1.589, allocations: 29.45 kB / 0.7377 GB, free: 90.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003059/1.592, allocations: 4.526 MB / 0.7421 GB, free: 86.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/1.594, allocations: 1.213 MB / 0.7433 GB, free: 85.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007015/1.595, allocations: 1.406 kB / 0.7433 GB, free: 85.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004722/1.595, allocations: 0.7041 MB / 0.744 GB, free: 85.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005356/1.601, allocations: 4.375 MB / 0.7483 GB, free: 83.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009024/1.61, allocations: 9.562 MB / 0.7576 GB, free: 75.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008959/1.619, allocations: 6.357 MB / 0.7638 GB, free: 72.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001848/1.619, allocations: 54.38 kB / 0.7639 GB, free: 72.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.04285/1.662, allocations: 17.66 MB / 0.7811 GB, free: 63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003906/1.662, allocations: 84 kB / 0.7812 GB, free: 62.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000552/1.663, allocations: 184 kB / 0.7814 GB, free: 62.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02116/1.684, allocations: 5.627 MB / 0.7869 GB, free: 59.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008229/1.692, allocations: 2.141 MB / 0.7889 GB, free: 57.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02357/1.716, allocations: 21.62 MB / 0.8101 GB, free: 38.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008955/1.725, allocations: 397.2 kB / 0.8104 GB, free: 38.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002224/1.727, allocations: 0.5262 MB / 0.8109 GB, free: 37.8 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 (1108): * Single equations (assignments): 1100 * 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.002311/1.729, allocations: 0.5659 MB / 0.8115 GB, free: 37.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001261/1.731, allocations: 481.7 kB / 0.812 GB, free: 36.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02734/1.758, allocations: 12.02 MB / 0.8237 GB, free: 25.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/1.758, allocations: 55.98 kB / 0.8238 GB, free: 25.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-05/1.758, allocations: 11.95 kB / 0.8238 GB, free: 25.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.17e-05/1.758, allocations: 19.94 kB / 0.8238 GB, free: 25.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04912/1.808, allocations: 22.46 MB / 0.8457 GB, free: 2.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.294e-05/1.808, allocations: 15.72 kB / 0.8457 GB, free: 2.348 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003196/1.811, allocations: 0.5655 MB / 0.8463 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2589/2.07, allocations: 4.631 MB / 0.8508 GB, free: 99.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008015/2.071, allocations: 11.44 kB / 0.8508 GB, free: 99.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0243/2.095, allocations: 17.34 MB / 0.8678 GB, free: 97 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/2.095, allocations: 5.969 kB / 0.8678 GB, free: 97 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03104/2.126, allocations: 16.97 MB / 0.8843 GB, free: 92.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003248/2.129, allocations: 1.182 MB / 0.8855 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/2.131, allocations: 7.625 kB / 0.8855 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003081/2.134, allocations: 204.4 kB / 0.8857 GB, free: 92.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006302/2.134, allocations: 190.3 kB / 0.8859 GB, free: 92.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002737/2.135, allocations: 85.36 kB / 0.886 GB, free: 92.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0075/2.142, allocations: 2.865 MB / 0.8887 GB, free: 91.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.11e-07/2.142, allocations: 2.438 kB / 0.8888 GB, free: 91.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01059/2.153, allocations: 1.492 MB / 0.8902 GB, free: 91.37 MB / 442.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.001023/2.154, allocations: 163.7 kB / 0.8904 GB, free: 91.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01428/2.168, allocations: 10 MB / 0.9001 GB, free: 87.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/2.168, allocations: 3.969 kB / 0.9001 GB, free: 87.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005223/2.173, allocations: 3.817 MB / 0.9039 GB, free: 86.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003605/2.177, allocations: 454.8 kB / 0.9043 GB, free: 86.06 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02649/2.204, allocations: 13.34 MB / 0.9173 GB, free: 81.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006132/2.21, allocations: 4.749 MB / 0.922 GB, free: 79.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008032/2.218, allocations: 3.083 MB / 0.925 GB, free: 79.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001574/2.219, allocations: 341.2 kB / 0.9253 GB, free: 79.49 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/2.219, allocations: 0 / 0.9253 GB, free: 79.49 MB / 442.7 MB Notification: Performance of Templates: time 0.1076/2.327, allocations: 67.7 MB / 0.9914 GB, free: 20.89 MB / 442.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