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.001325/0.001325, allocations: 176.4 kB / 8.349 MB, free: 0.7266 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.416/1.416, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.0008595/0.0008596, allocations: 97.39 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.126e-05/2.128e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3827/0.4953, allocations: 100.7 MB / 488.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.4956, allocations: 83.95 kB / 488.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5583/1.054, allocations: 126.2 MB / 0.6 GB, free: 94.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.054, allocations: 0 / 0.6 GB, free: 94.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004683/1.054, allocations: 120 kB / 0.6001 GB, free: 94.54 MB / 426.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.02395/1.078, allocations: 6.309 MB / 0.6063 GB, free: 91.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/1.078, allocations: 6.406 kB / 0.6063 GB, free: 91.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0323/1.111, allocations: 8.315 MB / 0.6144 GB, free: 88.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01866/1.129, allocations: 6.962 MB / 0.6212 GB, free: 84.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003673/1.13, allocations: 192 kB / 0.6214 GB, free: 84.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003444/1.133, allocations: 355.8 kB / 0.6217 GB, free: 83.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01981/1.153, allocations: 10.13 MB / 0.6316 GB, free: 73.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03568/1.189, allocations: 14.06 MB / 0.6454 GB, free: 58.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004734/1.189, allocations: 75.34 kB / 0.6454 GB, free: 58.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003339/1.193, allocations: 36 kB / 0.6455 GB, free: 58.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002516/1.195, allocations: 1.623 MB / 0.6471 GB, free: 56.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07512/1.27, allocations: 61.45 MB / 0.7071 GB, free: 10.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007786/1.278, allocations: 5.561 MB / 0.7125 GB, free: 4.309 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004693/1.283, allocations: 3.372 MB / 0.7158 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3064/1.589, allocations: 13.97 MB / 0.7294 GB, free: 100.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/1.59, allocations: 64 kB / 0.7295 GB, free: 100.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.595e-06/1.59, allocations: 0 / 0.7295 GB, free: 100.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.07043/1.66, allocations: 30.83 MB / 0.7596 GB, free: 94.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/1.66, allocations: 217.4 kB / 0.7598 GB, free: 93.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006489/1.667, allocations: 4.271 MB / 0.764 GB, free: 92.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000787/1.667, allocations: 25.7 kB / 0.764 GB, free: 92.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002482/1.67, allocations: 4.525 MB / 0.7684 GB, free: 88.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001481/1.671, allocations: 1.216 MB / 0.7696 GB, free: 87.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005353/1.672, allocations: 0 / 0.7696 GB, free: 87.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004025/1.672, allocations: 0.7032 MB / 0.7703 GB, free: 87.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004821/1.677, allocations: 4.375 MB / 0.7746 GB, free: 85.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007193/1.684, allocations: 9.576 MB / 0.7839 GB, free: 76.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/1.698, allocations: 6.345 MB / 0.7901 GB, free: 74.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003037/1.699, allocations: 51.19 kB / 0.7902 GB, free: 74.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.06985/1.769, allocations: 17.66 MB / 0.8074 GB, free: 63.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/1.769, allocations: 84 kB / 0.8075 GB, free: 63.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002912/1.769, allocations: 184 kB / 0.8077 GB, free: 63.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03836/1.808, allocations: 5.635 MB / 0.8132 GB, free: 59.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01353/1.821, allocations: 2.133 MB / 0.8152 GB, free: 58.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02803/1.849, allocations: 21.63 MB / 0.8364 GB, free: 38.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007902/1.857, allocations: 387.2 kB / 0.8367 GB, free: 38.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002029/1.859, allocations: 0.53 MB / 0.8373 GB, free: 37.69 MB / 442.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.001619/1.861, allocations: 0.5711 MB / 0.8378 GB, free: 37.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/1.862, allocations: 473.8 kB / 0.8383 GB, free: 36.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02689/1.889, allocations: 12.02 MB / 0.85 GB, free: 24.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/1.889, allocations: 60.8 kB / 0.8501 GB, free: 24.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/1.889, allocations: 8 kB / 0.8501 GB, free: 24.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.409e-05/1.889, allocations: 15.94 kB / 0.8501 GB, free: 24.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04408/1.933, allocations: 22.46 MB / 0.872 GB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.294e-05/1.933, allocations: 4 kB / 0.872 GB, free: 1.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003129/1.936, allocations: 0.57 MB / 0.8726 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01907/1.956, allocations: 4.635 MB / 0.8771 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000708/1.956, allocations: 11.95 kB / 0.8771 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3379/2.294, allocations: 17.33 MB / 0.894 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.966e-05/2.294, allocations: 15.5 kB / 0.894 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03977/2.334, allocations: 16.96 MB / 0.9106 GB, free: 99 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/2.335, allocations: 0.4993 MB / 0.9111 GB, free: 98.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/2.337, allocations: 7.812 kB / 0.9111 GB, free: 98.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/2.34, allocations: 202.4 kB / 0.9113 GB, free: 98.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006758/2.34, allocations: 194.2 kB / 0.9115 GB, free: 98.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/2.341, allocations: 85.62 kB / 0.9116 GB, free: 98.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004112/2.345, allocations: 2.838 MB / 0.9143 GB, free: 97.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.91e-07/2.345, allocations: 0 / 0.9143 GB, free: 97.83 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00827/2.353, allocations: 1.49 MB / 0.9158 GB, free: 97.83 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 (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.0007345/2.354, allocations: 171 kB / 0.916 GB, free: 97.74 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01326/2.367, allocations: 10 MB / 0.9257 GB, free: 94.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/2.367, allocations: 0 / 0.9257 GB, free: 94.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004669/2.372, allocations: 3.814 MB / 0.9295 GB, free: 92.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00349/2.375, allocations: 464.2 kB / 0.9299 GB, free: 92.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02157/2.397, allocations: 13.31 MB / 0.9429 GB, free: 87.68 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005166/2.402, allocations: 4.746 MB / 0.9475 GB, free: 86.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00717/2.409, allocations: 3.074 MB / 0.9505 GB, free: 86.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/2.411, allocations: 342.1 kB / 0.9509 GB, free: 85.81 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/2.411, allocations: 0 / 0.9509 GB, free: 85.81 MB / 458.7 MB Notification: Performance of Templates: time 0.09741/2.508, allocations: 67.67 MB / 1.017 GB, free: 26.89 MB / 458.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