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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 115.7 kB / 17.74 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 185.6 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 55.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.3001, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01587/0.316, allocations: 15.03 MB / 416.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.3275, allocations: 4.815 MB / 421.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002826/0.3304, allocations: 91.75 kB / 421.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005623/0.336, allocations: 3.173 MB / 424.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006312/0.3424, allocations: 2.549 MB / 427.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002219/0.3447, allocations: 0.9866 MB / 428 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.3548, allocations: 6.969 MB / 435 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006708/0.3615, allocations: 4.335 MB / 439.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.3653, allocations: 2.231 MB / 441.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004404/0.3697, allocations: 3.24 MB / 444.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.3711, allocations: 484 kB / 445.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003214/0.3743, allocations: 1.502 MB / 446.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002904/0.3772, allocations: 2.887 MB / 449.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003657/0.3809, allocations: 3.243 MB / 452.9 MB, free: 5.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01058/0.3915, allocations: 10.43 MB / 463.4 MB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3916, allocations: 4 kB / 463.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.145e-06/0.3916, allocations: 4 kB / 463.4 MB, free: 10.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003048/0.3919, allocations: 0 / 463.4 MB, free: 10.64 MB / 382.1 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.01647/0.4084, allocations: 7.287 MB / 470.7 MB, free: 3.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4084, allocations: 12.03 kB / 470.7 MB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.4245, allocations: 3.935 MB / 474.6 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009182/0.4337, allocations: 4.173 MB / 478.8 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.434, allocations: 320.4 kB / 479.1 MB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/0.4358, allocations: 431.6 kB / 479.5 MB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02728/0.4631, allocations: 15.71 MB / 495.2 MB, free: 9.691 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001855/0.4633, allocations: 59.52 kB / 495.3 MB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000821/0.4641, allocations: 207.8 kB / 495.5 MB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005076/0.4692, allocations: 3.22 MB / 498.7 MB, free: 6.207 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02781/0.4971, allocations: 14.13 MB / 0.5008 GB, free: 8.051 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3302/0.8273, allocations: 57.49 MB / 0.557 GB, free: 91.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0129/0.8402, allocations: 6.569 MB / 0.5634 GB, free: 89.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004121/0.8444, allocations: 3.684 MB / 0.567 GB, free: 88.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01857/0.863, allocations: 14.63 MB / 0.5812 GB, free: 80.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.8631, allocations: 64.41 kB / 0.5813 GB, free: 80.77 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.923e-06/0.8631, allocations: 6.812 kB / 0.5813 GB, free: 80.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1421/1.005, allocations: 42.35 MB / 0.6227 GB, free: 39.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/1.005, allocations: 217.9 kB / 0.6229 GB, free: 39.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006555/1.012, allocations: 5.47 MB / 0.6282 GB, free: 33.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009233/1.013, allocations: 73.7 kB / 0.6283 GB, free: 33.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/1.015, allocations: 4.358 MB / 0.6326 GB, free: 29.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001654/1.017, allocations: 1.253 MB / 0.6338 GB, free: 28.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0025/1.019, allocations: 1.858 MB / 0.6356 GB, free: 26.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.701e-05/1.019, allocations: 305.1 kB / 0.6359 GB, free: 25.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005613/1.025, allocations: 4.808 MB / 0.6406 GB, free: 21.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007771/1.033, allocations: 9.803 MB / 0.6502 GB, free: 8.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01828/1.051, allocations: 15.56 MB / 0.6654 GB, free: 6.961 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001907/1.051, allocations: 56 kB / 0.6654 GB, free: 6.906 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.05142/1.103, allocations: 19.56 MB / 0.6845 GB, free: 3.289 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002653/1.103, allocations: 82.5 kB / 0.6846 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003819/1.103, allocations: 172.9 kB / 0.6848 GB, free: 3.043 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0243/1.128, allocations: 5.937 MB / 0.6906 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009038/1.137, allocations: 2.117 MB / 0.6926 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03973/1.177, allocations: 26.14 MB / 0.7181 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009467/1.186, allocations: 0.5578 MB / 0.7187 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/1.188, allocations: 0.5138 MB / 0.7192 GB, free: 15.48 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01002/1.198, allocations: 3.095 MB / 0.7222 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002146/1.201, allocations: 497.5 kB / 0.7227 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03643/1.237, allocations: 12.94 MB / 0.7353 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001116/1.237, allocations: 57.88 kB / 0.7354 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.294e-05/1.237, allocations: 12 kB / 0.7354 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.359e-05/1.237, allocations: 11.95 kB / 0.7354 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3689/1.606, allocations: 24.5 MB / 0.7593 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.623e-05/1.606, allocations: 3.969 kB / 0.7593 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003207/1.61, allocations: 0.5758 MB / 0.7599 GB, free: 202.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01959/1.629, allocations: 4.971 MB / 0.7648 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009566/1.63, allocations: 62.58 kB / 0.7648 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0241/1.654, allocations: 21.34 MB / 0.7857 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.654, allocations: 11.94 kB / 0.7857 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03407/1.688, allocations: 17.45 MB / 0.8027 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/1.69, allocations: 0.528 MB / 0.8032 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001914/1.692, allocations: 59.83 kB / 0.8033 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003902/1.696, allocations: 261.2 kB / 0.8035 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/1.697, allocations: 205.2 kB / 0.8037 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000289/1.697, allocations: 84 kB / 0.8038 GB, free: 170.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005323/1.703, allocations: 3.402 MB / 0.8071 GB, free: 166.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/1.703, allocations: 0 / 0.8071 GB, free: 166.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008697/1.711, allocations: 1.763 MB / 0.8088 GB, free: 165.2 MB / 0.545 GB 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/1.713, allocations: 200.4 kB / 0.809 GB, free: 165 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01469/1.727, allocations: 10.97 MB / 0.8197 GB, free: 154.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.94e-05/1.727, allocations: 7.812 kB / 0.8198 GB, free: 154.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005401/1.733, allocations: 4.098 MB / 0.8238 GB, free: 150 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004943/1.738, allocations: 0.6207 MB / 0.8244 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/1.762, allocations: 16.62 MB / 0.8406 GB, free: 132.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004898/1.767, allocations: 4.602 MB / 0.8451 GB, free: 128.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/1.769, allocations: 419.2 kB / 0.8455 GB, free: 127.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.312e-06/1.769, allocations: 0 / 0.8455 GB, free: 127.7 MB / 0.545 GB Notification: Performance of Templates: time 0.4511/2.22, allocations: 150.5 MB / 0.9925 GB, free: 169.8 MB / 0.545 GB 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches