Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001499/0.001499, allocations: 71.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001959/0.001959, allocations: 171.4 kB / 25.33 MB, free: 8.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8866/0.8866, allocations: 158.6 MB / 187.2 MB, free: 2.941 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 251 MB, free: 7.504 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.79e-05/2.953e-05, allocations: 6.25 kB / 251 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01958/0.01961, allocations: 18.06 MB / 269.1 MB, free: 5.363 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.014/0.03361, allocations: 6.088 MB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003853/0.03746, allocations: 171.1 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008553/0.04602, allocations: 6.784 MB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006935/0.05295, allocations: 3.04 MB / 285.2 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003979/0.05693, allocations: 2.533 MB / 287.7 MB, free: 2.688 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.06845, allocations: 10.13 MB / 297.8 MB, free: 8.539 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01058/0.07903, allocations: 7.475 MB / 305.3 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009502/0.08853, allocations: 4.998 MB / 310.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007035/0.09557, allocations: 4.837 MB / 315.2 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002453/0.09802, allocations: 0.7383 MB / 315.9 MB, free: 6.375 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004147/0.1022, allocations: 1.877 MB / 317.8 MB, free: 4.496 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0046/0.1068, allocations: 4.146 MB / 321.9 MB, free: 348 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004803/0.1116, allocations: 2.61 MB / 324.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.1226, allocations: 8.468 MB / 333 MB, free: 5.227 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1226, allocations: 4 kB / 333 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1226, allocations: 0 / 333 MB, free: 5.223 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003761/0.123, allocations: 0 / 333 MB, free: 5.223 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.01552/0.1385, allocations: 9.727 MB / 342.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1386, allocations: 15.98 kB / 342.7 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0233/0.1619, allocations: 5.762 MB / 348.5 MB, free: 5.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2422/0.4041, allocations: 5.84 MB / 354.3 MB, free: 92.05 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000496/0.4046, allocations: 432.9 kB / 354.8 MB, free: 92.04 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0018/0.4064, allocations: 0.5834 MB / 355.4 MB, free: 92.04 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01876/0.4252, allocations: 10.56 MB / 365.9 MB, free: 87.97 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003134/0.4255, allocations: 78.17 kB / 366 MB, free: 87.97 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/0.4265, allocations: 267.5 kB / 366.2 MB, free: 87.97 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003416/0.43, allocations: 2.656 MB / 368.9 MB, free: 87.63 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.4482, allocations: 5.98 MB / 374.9 MB, free: 82.41 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05473/0.5029, allocations: 65.17 MB / 440 MB, free: 16.45 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.5139, allocations: 5.48 MB / 445.5 MB, free: 10.95 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002087/0.516, allocations: 1.516 MB / 447 MB, free: 9.418 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01342/0.5294, allocations: 11.23 MB / 458.3 MB, free: 14.4 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/0.5295, allocations: 67.33 kB / 458.3 MB, free: 14.32 MB / 346.8 MB Notification: Performance of pre-optimization done (n=281): time 5.541e-06/0.5295, allocations: 0 / 458.3 MB, free: 14.32 MB / 346.8 MB Notification: Performance of matching and sorting (n=374): time 0.2563/0.7859, allocations: 57.51 MB / 0.5038 GB, free: 104 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.786, allocations: 380.3 kB / 0.5041 GB, free: 103.5 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006993/0.793, allocations: 5.545 MB / 0.5095 GB, free: 99.54 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001177/0.7942, allocations: 92.84 kB / 0.5096 GB, free: 99.49 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002498/0.7967, allocations: 5.169 MB / 0.5147 GB, free: 95.91 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001958/0.7986, allocations: 1.487 MB / 0.5161 GB, free: 94.69 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002202/0.8008, allocations: 2.036 MB / 0.5181 GB, free: 93.33 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 6.127e-05/0.8009, allocations: 480.7 kB / 0.5186 GB, free: 92.86 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003112/0.804, allocations: 1.939 MB / 0.5205 GB, free: 90.91 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005049/0.809, allocations: 9.556 MB / 0.5298 GB, free: 78.04 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00978/0.8188, allocations: 12.35 MB / 0.5419 GB, free: 62.73 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/0.819, allocations: 48 kB / 0.5419 GB, free: 62.68 MB / 362.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.02562/0.8446, allocations: 13.84 MB / 0.5554 GB, free: 48.8 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.041e-05/0.8447, allocations: 84.25 kB / 0.5555 GB, free: 48.72 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001582/0.8448, allocations: 172 kB / 0.5557 GB, free: 48.55 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0137/0.8585, allocations: 5.954 MB / 0.5615 GB, free: 42.59 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005563/0.8641, allocations: 2.191 MB / 0.5636 GB, free: 40.39 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01962/0.8837, allocations: 15.8 MB / 0.579 GB, free: 24.25 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006874/0.8906, allocations: 0.8843 MB / 0.5799 GB, free: 23.36 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/0.8921, allocations: 0.5294 MB / 0.5804 GB, free: 22.84 MB / 362.8 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.003118/0.8952, allocations: 0.8856 MB / 0.5813 GB, free: 21.94 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001607/0.8968, allocations: 0.6701 MB / 0.5819 GB, free: 21.27 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/0.9113, allocations: 9.05 MB / 0.5908 GB, free: 12.15 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-05/0.9114, allocations: 48 kB / 0.5908 GB, free: 12.1 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-05/0.9114, allocations: 20 kB / 0.5908 GB, free: 12.08 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.627e-05/0.9115, allocations: 19.94 kB / 0.5909 GB, free: 12.06 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1818/1.093, allocations: 19.15 MB / 0.6096 GB, free: 101.3 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.333e-05/1.093, allocations: 2.906 kB / 0.6096 GB, free: 101.3 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002495/1.096, allocations: 0.6053 MB / 0.6102 GB, free: 101.3 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01277/1.109, allocations: 5.533 MB / 0.6156 GB, free: 101.2 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008683/1.109, allocations: 69.81 kB / 0.6156 GB, free: 101.2 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01838/1.128, allocations: 14.58 MB / 0.6299 GB, free: 95.75 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.128, allocations: 4.453 kB / 0.6299 GB, free: 95.75 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/1.147, allocations: 10.86 MB / 0.6405 GB, free: 94.77 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0034/1.15, allocations: 1.541 MB / 0.642 GB, free: 94.77 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009722/1.151, allocations: 61.05 kB / 0.642 GB, free: 94.77 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002845/1.154, allocations: 0.5673 MB / 0.6426 GB, free: 94.77 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008084/1.155, allocations: 259.4 kB / 0.6428 GB, free: 94.76 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002405/1.155, allocations: 99.28 kB / 0.6429 GB, free: 94.76 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.003103/1.158, allocations: 2.564 MB / 0.6454 GB, free: 94.54 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.3e-07/1.158, allocations: 0 / 0.6454 GB, free: 94.54 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.00734/1.166, allocations: 2.632 MB / 0.648 GB, free: 93.26 MB / 378.8 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.0008932/1.166, allocations: 303.3 kB / 0.6483 GB, free: 93.08 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.01116/1.178, allocations: 7.855 MB / 0.656 GB, free: 86.96 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.178, allocations: 0 / 0.656 GB, free: 86.96 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004936/1.183, allocations: 3.535 MB / 0.6594 GB, free: 83.41 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004942/1.187, allocations: 0.849 MB / 0.6603 GB, free: 82.61 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02168/1.209, allocations: 15.03 MB / 0.6749 GB, free: 67.5 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002225/1.211, allocations: 2.242 MB / 0.6771 GB, free: 65.23 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.004034/1.215, allocations: 2.313 MB / 0.6794 GB, free: 62.91 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001569/1.217, allocations: 376.4 kB / 0.6797 GB, free: 62.55 MB / 378.8 MB Notification: Performance of SimCode: time 2.244e-06/1.217, allocations: 0 / 0.6797 GB, free: 62.55 MB / 378.8 MB Notification: Performance of Templates: time 0.255/1.472, allocations: 110.8 MB / 0.788 GB, free: 104.1 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.960971053224057]