Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 81.66 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 151.3 kB / 23.93 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 179] 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.675e-06/2.675e-06, allocations: 1.062 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.726e-05, allocations: 2.281 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01963/0.01966, allocations: 15.73 MB / 334.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01691/0.03657, allocations: 5.861 MB / 340.5 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00565/0.04222, allocations: 170.4 kB / 340.7 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01371/0.05593, allocations: 6.42 MB / 347.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008946/0.06488, allocations: 3.029 MB / 350.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005782/0.07066, allocations: 2.455 MB / 352.6 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01574/0.0864, allocations: 10.8 MB / 363.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01209/0.0985, allocations: 7.246 MB / 370.6 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01158/0.1101, allocations: 4.951 MB / 375.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008361/0.1184, allocations: 4.661 MB / 380.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002632/0.1211, allocations: 0.7344 MB / 381 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0051/0.1262, allocations: 1.88 MB / 382.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005677/0.1318, allocations: 4.095 MB / 387 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006343/0.1382, allocations: 2.595 MB / 389.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01946/0.1577, allocations: 13.56 MB / 403.1 MB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1577, allocations: 0 / 403.1 MB, free: 7.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1577, allocations: 0 / 403.1 MB, free: 7.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005491/0.1582, allocations: 0 / 403.1 MB, free: 7.199 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.02626/0.1845, allocations: 9.214 MB / 412.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1845, allocations: 8.922 kB / 412.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.053/0.2375, allocations: 5.056 MB / 417.4 MB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01753/0.255, allocations: 6.283 MB / 423.7 MB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004761/0.2555, allocations: 431.7 kB / 424.1 MB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/0.258, allocations: 0.5821 MB / 424.7 MB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03777/0.2958, allocations: 17.3 MB / 442 MB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003838/0.2961, allocations: 83.41 kB / 442.1 MB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002035/0.2982, allocations: 263.8 kB / 442.3 MB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005148/0.3033, allocations: 2.658 MB / 445 MB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03246/0.3358, allocations: 14.76 MB / 459.7 MB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3541/0.6898, allocations: 60.01 MB / 0.5076 GB, free: 83.74 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02176/0.7116, allocations: 8.29 MB / 0.5157 GB, free: 80.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004896/0.7165, allocations: 4.736 MB / 0.5203 GB, free: 75.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02734/0.7438, allocations: 17.48 MB / 0.5374 GB, free: 57.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.719e-05/0.7439, allocations: 64.56 kB / 0.5374 GB, free: 57.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 7.985e-06/0.7439, allocations: 0 / 0.5374 GB, free: 57.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=374): time 0.2695/1.013, allocations: 76.7 MB / 0.6123 GB, free: 13.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002599/1.014, allocations: 380.6 kB / 0.6127 GB, free: 13.23 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01153/1.025, allocations: 6.462 MB / 0.619 GB, free: 6.992 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001036/1.026, allocations: 83.73 kB / 0.6191 GB, free: 6.906 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004096/1.03, allocations: 4.928 MB / 0.6239 GB, free: 2.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002339/1.033, allocations: 1.417 MB / 0.6253 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005073/1.038, allocations: 1.968 MB / 0.6272 GB, free: 14.89 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/1.038, allocations: 305.1 kB / 0.6275 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009761/1.048, allocations: 5.992 MB / 0.6333 GB, free: 8.594 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1757/1.223, allocations: 11.22 MB / 0.6443 GB, free: 155.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02205/1.245, allocations: 17.96 MB / 0.6618 GB, free: 144 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002819/1.246, allocations: 48.06 kB / 0.6619 GB, free: 144 MB / 478.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04658/1.292, allocations: 23.26 MB / 0.6846 GB, free: 136.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.292, allocations: 79.91 kB / 0.6847 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/1.292, allocations: 178.2 kB / 0.6848 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02194/1.314, allocations: 7.442 MB / 0.6921 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007613/1.322, allocations: 2.183 MB / 0.6942 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04656/1.369, allocations: 37.49 MB / 0.7308 GB, free: 90.39 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0105/1.379, allocations: 0.864 MB / 0.7317 GB, free: 89.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002098/1.381, allocations: 0.5254 MB / 0.7322 GB, free: 89.03 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.008007/1.389, allocations: 3.431 MB / 0.7356 GB, free: 85.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/1.391, allocations: 0.5603 MB / 0.7361 GB, free: 85.45 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03449/1.426, allocations: 16.84 MB / 0.7525 GB, free: 68.54 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-05/1.426, allocations: 48 kB / 0.7526 GB, free: 68.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.341e-05/1.426, allocations: 19.94 kB / 0.7526 GB, free: 68.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.053e-05/1.426, allocations: 15.94 kB / 0.7526 GB, free: 68.46 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05589/1.482, allocations: 29.65 MB / 0.7816 GB, free: 38.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-05/1.482, allocations: 4 kB / 0.7816 GB, free: 38.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003425/1.485, allocations: 0.6045 MB / 0.7822 GB, free: 37.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02118/1.507, allocations: 7.002 MB / 0.789 GB, free: 30.96 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001016/1.508, allocations: 64 kB / 0.7891 GB, free: 30.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2285/1.736, allocations: 35.71 MB / 0.8239 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.736, allocations: 5.812 kB / 0.824 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04191/1.778, allocations: 24.51 MB / 0.8479 GB, free: 136.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/1.78, allocations: 0.6188 MB / 0.8485 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002031/1.782, allocations: 62.53 kB / 0.8485 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00587/1.788, allocations: 0.5406 MB / 0.8491 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001502/1.789, allocations: 264.8 kB / 0.8493 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004824/1.79, allocations: 90.88 kB / 0.8494 GB, free: 135.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005469/1.795, allocations: 3.93 MB / 0.8533 GB, free: 134.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/1.795, allocations: 0 / 0.8533 GB, free: 134.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008909/1.804, allocations: 2.615 MB / 0.8558 GB, free: 133.1 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.001036/1.805, allocations: 308.1 kB / 0.8561 GB, free: 132.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01873/1.824, allocations: 14.2 MB / 0.87 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/1.824, allocations: 4 kB / 0.87 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009542/1.833, allocations: 6.156 MB / 0.876 GB, free: 113.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006532/1.84, allocations: 0.8181 MB / 0.8768 GB, free: 112.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02792/1.868, allocations: 20.26 MB / 0.8966 GB, free: 92.12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005094/1.873, allocations: 4.783 MB / 0.9012 GB, free: 87.31 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00585/1.879, allocations: 2.988 MB / 0.9042 GB, free: 84.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001847/1.881, allocations: 376.4 kB / 0.9045 GB, free: 84.08 MB / 478.1 MB Notification: Performance of SimCode: time 1.273e-06/1.881, allocations: 4 kB / 0.9045 GB, free: 84.07 MB / 478.1 MB Notification: Performance of Templates: time 0.2992/2.18, allocations: 108.3 MB / 1.01 GB, free: 136.3 MB / 478.1 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.300453182309866]