Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001578/0.001578, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001791/0.001791, allocations: 160 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 177.1 MB / 204.7 MB, free: 8.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 62.38 kB / 325.5 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09986/0.1021, allocations: 53.38 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01992/0.122, allocations: 15.61 MB / 394.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.1353, allocations: 5.835 MB / 400.4 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003498/0.1388, allocations: 175.1 kB / 400.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01225/0.151, allocations: 6.067 MB / 406.6 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008348/0.1594, allocations: 2.911 MB / 409.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005874/0.1652, allocations: 2.249 MB / 411.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01564/0.1809, allocations: 9.716 MB / 421.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008895/0.1898, allocations: 6.19 MB / 427.7 MB, free: 14.49 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006339/0.1961, allocations: 3.257 MB / 430.9 MB, free: 11.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007784/0.2039, allocations: 4.159 MB / 435.1 MB, free: 7.055 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002314/0.2062, allocations: 0.7148 MB / 435.8 MB, free: 6.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004794/0.211, allocations: 1.807 MB / 437.6 MB, free: 4.531 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005692/0.2167, allocations: 3.877 MB / 441.5 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006698/0.2234, allocations: 3.14 MB / 444.6 MB, free: 13.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01804/0.2414, allocations: 13.29 MB / 457.9 MB, free: 152 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2414, allocations: 0 / 457.9 MB, free: 152 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2414, allocations: 0 / 457.9 MB, free: 152 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004313/0.2419, allocations: 0 / 457.9 MB, free: 152 kB / 414.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.02387/0.2657, allocations: 9.066 MB / 467 MB, free: 7.008 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.2658, allocations: 11.98 kB / 467 MB, free: 6.996 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04971/0.3155, allocations: 5.056 MB / 472 MB, free: 1.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4023/0.7178, allocations: 6.312 MB / 478.3 MB, free: 76.57 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003735/0.7182, allocations: 435.7 kB / 478.8 MB, free: 76.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002826/0.721, allocations: 0.5865 MB / 479.4 MB, free: 76.26 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03443/0.7555, allocations: 17.29 MB / 496.6 MB, free: 68.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000267/0.7557, allocations: 79.92 kB / 496.7 MB, free: 68.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001199/0.7569, allocations: 269.9 kB / 497 MB, free: 67.95 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003639/0.7606, allocations: 2.661 MB / 499.7 MB, free: 65.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02687/0.7874, allocations: 14.75 MB / 0.5024 GB, free: 50.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07072/0.8582, allocations: 59.53 MB / 0.5605 GB, free: 6.285 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02505/0.8832, allocations: 8.283 MB / 0.5686 GB, free: 14.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007131/0.8903, allocations: 4.726 MB / 0.5732 GB, free: 9.281 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03089/0.9212, allocations: 17.01 MB / 0.5898 GB, free: 8.359 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.653e-05/0.9213, allocations: 60.56 kB / 0.5899 GB, free: 8.293 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.805e-06/0.9213, allocations: 7.938 kB / 0.5899 GB, free: 8.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2819/1.203, allocations: 76.44 MB / 0.6645 GB, free: 12 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002511/1.203, allocations: 368.6 kB / 0.6649 GB, free: 11.56 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/1.215, allocations: 6.116 MB / 0.6708 GB, free: 5.457 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009875/1.216, allocations: 81.7 kB / 0.6709 GB, free: 5.371 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004571/1.22, allocations: 4.972 MB / 0.6758 GB, free: 364 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.207/1.427, allocations: 1.431 MB / 0.6772 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004025/1.431, allocations: 1.993 MB / 0.6791 GB, free: 189.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.265e-05/1.431, allocations: 303.6 kB / 0.6794 GB, free: 188.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009429/1.441, allocations: 5.991 MB / 0.6852 GB, free: 186.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01232/1.453, allocations: 11.23 MB / 0.6962 GB, free: 177.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01784/1.471, allocations: 17.97 MB / 0.7138 GB, free: 165.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001757/1.471, allocations: 46.44 kB / 0.7138 GB, free: 165.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04531/1.516, allocations: 23.24 MB / 0.7365 GB, free: 149.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002647/1.516, allocations: 85.16 kB / 0.7366 GB, free: 149 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002902/1.517, allocations: 171.9 kB / 0.7367 GB, free: 148.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02143/1.538, allocations: 7.438 MB / 0.744 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007345/1.546, allocations: 2.19 MB / 0.7461 GB, free: 139.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04244/1.588, allocations: 37.29 MB / 0.7826 GB, free: 101.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009234/1.597, allocations: 0.7498 MB / 0.7833 GB, free: 101.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001478/1.599, allocations: 0.5273 MB / 0.7838 GB, free: 100.6 MB / 0.545 GB 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.005055/1.604, allocations: 3.435 MB / 0.7872 GB, free: 97.27 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.605, allocations: 0.5609 MB / 0.7877 GB, free: 96.76 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02968/1.635, allocations: 16.84 MB / 0.8042 GB, free: 79.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.766e-05/1.635, allocations: 44 kB / 0.8042 GB, free: 79.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-05/1.635, allocations: 16 kB / 0.8042 GB, free: 79.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-05/1.635, allocations: 19.94 kB / 0.8042 GB, free: 79.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04867/1.684, allocations: 29.43 MB / 0.833 GB, free: 50.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.896e-05/1.684, allocations: 0 / 0.833 GB, free: 50.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003199/1.687, allocations: 0.6125 MB / 0.8336 GB, free: 49.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01961/1.706, allocations: 7.004 MB / 0.8404 GB, free: 42.41 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008257/1.707, allocations: 71.66 kB / 0.8405 GB, free: 42.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04/1.747, allocations: 35.52 MB / 0.8752 GB, free: 6.531 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.747, allocations: 11.94 kB / 0.8752 GB, free: 6.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2465/1.994, allocations: 24.5 MB / 0.8991 GB, free: 167 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.996, allocations: 0.5342 MB / 0.8996 GB, free: 166.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/1.998, allocations: 62.97 kB / 0.8997 GB, free: 166.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005635/2.003, allocations: 443.3 kB / 0.9001 GB, free: 166.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001638/2.005, allocations: 269.4 kB / 0.9004 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005276/2.005, allocations: 91.47 kB / 0.9005 GB, free: 166.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006514/2.012, allocations: 3.657 MB / 0.904 GB, free: 165.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/2.012, allocations: 0 / 0.904 GB, free: 165.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009823/2.022, allocations: 2.272 MB / 0.9062 GB, free: 165.4 MB / 0.545 GB 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.001177/2.023, allocations: 290.4 kB / 0.9065 GB, free: 165.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02062/2.043, allocations: 14.21 MB / 0.9204 GB, free: 158.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.616e-05/2.044, allocations: 0 / 0.9204 GB, free: 158.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009944/2.053, allocations: 6.161 MB / 0.9264 GB, free: 153 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/2.059, allocations: 0.8008 MB / 0.9272 GB, free: 152.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02809/2.087, allocations: 20.26 MB / 0.947 GB, free: 134.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006085/2.093, allocations: 4.79 MB / 0.9517 GB, free: 129.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00628/2.099, allocations: 2.972 MB / 0.9546 GB, free: 126.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/2.101, allocations: 364.4 kB / 0.9549 GB, free: 126.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.623e-06/2.101, allocations: 0 / 0.9549 GB, free: 126.1 MB / 0.545 GB Notification: Performance of Templates: time 0.136/2.237, allocations: 104.8 MB / 1.057 GB, free: 21.78 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.27368630701676]