Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 85.28 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 164.9 kB / 23.96 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 177.2 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 3.938 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.263e-05/2.451e-05, allocations: 6.219 kB / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01842/0.01844, allocations: 15.63 MB / 340.7 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.03246, allocations: 5.861 MB / 346.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003697/0.03616, allocations: 171.1 kB / 346.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01299/0.04914, allocations: 6.386 MB / 353.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008547/0.05769, allocations: 3.001 MB / 356.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005617/0.06331, allocations: 2.452 MB / 358.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01589/0.0792, allocations: 11.12 MB / 369.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01122/0.09042, allocations: 7.234 MB / 376.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01011/0.1005, allocations: 4.94 MB / 381.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008154/0.1087, allocations: 4.653 MB / 386.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002177/0.1109, allocations: 0.7344 MB / 387.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004515/0.1154, allocations: 1.877 MB / 389.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005289/0.1207, allocations: 4.076 MB / 393.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005763/0.1264, allocations: 2.567 MB / 395.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01877/0.1452, allocations: 13.52 MB / 409.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1452, allocations: 0 / 409.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1452, allocations: 0 / 409.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004184/0.1456, allocations: 4 kB / 409.3 MB, free: 0.6523 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02483/0.1705, allocations: 9.202 MB / 418.5 MB, free: 7.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.1705, allocations: 8.031 kB / 418.5 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05232/0.2228, allocations: 5.06 MB / 423.6 MB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/0.2401, allocations: 6.271 MB / 429.8 MB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004844/0.2406, allocations: 443.6 kB / 430.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/0.2431, allocations: 0.5743 MB / 430.8 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03843/0.2816, allocations: 17.31 MB / 448.1 MB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004021/0.282, allocations: 79.41 kB / 448.2 MB, free: 8.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002017/0.284, allocations: 267.8 kB / 448.5 MB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005298/0.2893, allocations: 2.662 MB / 451.1 MB, free: 5.609 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03425/0.3235, allocations: 14.76 MB / 465.9 MB, free: 6.828 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4156/0.7391, allocations: 60.02 MB / 0.5136 GB, free: 78.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02189/0.761, allocations: 8.281 MB / 0.5217 GB, free: 71.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004938/0.7659, allocations: 4.726 MB / 0.5263 GB, free: 66.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02234/0.7883, allocations: 17.48 MB / 0.5434 GB, free: 49.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.7883, allocations: 68.5 kB / 0.5434 GB, free: 49.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 8.005e-06/0.7883, allocations: 0 / 0.5434 GB, free: 49.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=374): time 0.2721/1.06, allocations: 76.7 MB / 0.6183 GB, free: 4.836 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002672/1.061, allocations: 376.6 kB / 0.6187 GB, free: 4.387 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0111/1.072, allocations: 6.459 MB / 0.625 GB, free: 14.16 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001195/1.073, allocations: 89.61 kB / 0.6251 GB, free: 14.07 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004771/1.078, allocations: 4.921 MB / 0.6299 GB, free: 9.441 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002652/1.08, allocations: 1.422 MB / 0.6313 GB, free: 8.039 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004034/1.084, allocations: 1.956 MB / 0.6332 GB, free: 6.07 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002666/1.085, allocations: 305.1 kB / 0.6335 GB, free: 5.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1799/1.265, allocations: 5.988 MB / 0.6393 GB, free: 157.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01209/1.277, allocations: 11.23 MB / 0.6503 GB, free: 149.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01776/1.294, allocations: 17.96 MB / 0.6678 GB, free: 137.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001646/1.295, allocations: 49.03 kB / 0.6679 GB, free: 137.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04152/1.336, allocations: 23.25 MB / 0.6906 GB, free: 124.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/1.336, allocations: 80 kB / 0.6907 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/1.336, allocations: 172 kB / 0.6908 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02177/1.358, allocations: 7.438 MB / 0.6981 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007282/1.365, allocations: 2.183 MB / 0.7002 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04243/1.408, allocations: 37.5 MB / 0.7368 GB, free: 77.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009697/1.418, allocations: 0.8627 MB / 0.7377 GB, free: 76.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.419, allocations: 0.531 MB / 0.7382 GB, free: 76.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005641/1.425, allocations: 3.426 MB / 0.7416 GB, free: 72.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/1.427, allocations: 0.5647 MB / 0.7421 GB, free: 72.52 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03148/1.458, allocations: 16.83 MB / 0.7585 GB, free: 55.62 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.766e-05/1.458, allocations: 51.98 kB / 0.7586 GB, free: 55.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.537e-05/1.458, allocations: 16 kB / 0.7586 GB, free: 55.55 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.753e-05/1.459, allocations: 19.94 kB / 0.7586 GB, free: 55.53 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04891/1.507, allocations: 29.65 MB / 0.7876 GB, free: 25.63 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.739e-05/1.507, allocations: 4 kB / 0.7876 GB, free: 25.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003272/1.511, allocations: 0.6045 MB / 0.7882 GB, free: 25.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02114/1.532, allocations: 7.012 MB / 0.795 GB, free: 18 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000724/1.533, allocations: 63.98 kB / 0.7951 GB, free: 17.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2348/1.767, allocations: 35.7 MB / 0.8299 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.767, allocations: 6.922 kB / 0.83 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03909/1.806, allocations: 24.5 MB / 0.8539 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001946/1.808, allocations: 0.6154 MB / 0.8545 GB, free: 129 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001641/1.81, allocations: 64 kB / 0.8545 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005388/1.815, allocations: 0.5375 MB / 0.8551 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001341/1.817, allocations: 263.6 kB / 0.8553 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004131/1.817, allocations: 92 kB / 0.8554 GB, free: 128.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005979/1.823, allocations: 3.917 MB / 0.8592 GB, free: 124.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.823, allocations: 3.938 kB / 0.8592 GB, free: 124.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01004/1.833, allocations: 2.613 MB / 0.8618 GB, free: 121.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001053/1.834, allocations: 305.8 kB / 0.8621 GB, free: 121.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01902/1.853, allocations: 14.2 MB / 0.876 GB, free: 107.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/1.853, allocations: 0 / 0.876 GB, free: 107.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00925/1.863, allocations: 6.161 MB / 0.882 GB, free: 101.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006023/1.869, allocations: 0.8168 MB / 0.8828 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02921/1.898, allocations: 20.23 MB / 0.9025 GB, free: 80.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006303/1.904, allocations: 4.784 MB / 0.9072 GB, free: 75.58 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006275/1.91, allocations: 2.979 MB / 0.9101 GB, free: 72.72 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/1.912, allocations: 380.4 kB / 0.9105 GB, free: 72.35 MB / 478.1 MB Notification: Performance of SimCode: time 1.603e-06/1.912, allocations: 0 / 0.9105 GB, free: 72.35 MB / 478.1 MB Notification: Performance of Templates: time 0.3183/2.231, allocations: 108.3 MB / 1.016 GB, free: 145.5 MB / 494.1 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.400231540203094]