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.00148/0.00148, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001686/0.001686, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.428/1.428, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1061, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2064/0.3126, allocations: 18.11 MB / 444.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.326, allocations: 6.065 MB / 450.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003777/0.3298, allocations: 173.3 kB / 450.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01182/0.3416, allocations: 6.312 MB / 457 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007921/0.3496, allocations: 2.896 MB / 459.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005033/0.3546, allocations: 2.281 MB / 462.1 MB, free: 6.781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01533/0.3699, allocations: 9.685 MB / 471.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01189/0.3818, allocations: 6.905 MB / 478.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006203/0.388, allocations: 3.245 MB / 482 MB, free: 8.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007947/0.396, allocations: 4.468 MB / 486.5 MB, free: 4.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002807/0.3988, allocations: 0.7148 MB / 487.2 MB, free: 3.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005884/0.4047, allocations: 1.943 MB / 489.1 MB, free: 1.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007097/0.4117, allocations: 3.908 MB / 493 MB, free: 13.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009642/0.4214, allocations: 4.407 MB / 497.4 MB, free: 9.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01922/0.4406, allocations: 13.87 MB / 0.4993 GB, free: 11.56 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4406, allocations: 0 / 0.4993 GB, free: 11.56 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4406, allocations: 4 kB / 0.4993 GB, free: 11.56 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004783/0.4411, allocations: 0 / 0.4993 GB, free: 11.56 MB / 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.03342/0.4745, allocations: 9.66 MB / 0.5088 GB, free: 1.801 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.788e-05/0.4746, allocations: 8.031 kB / 0.5088 GB, free: 1.793 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004293/0.4789, allocations: 1.135 MB / 0.5099 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3329/0.8117, allocations: 23.27 MB / 0.5326 GB, free: 9.344 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02013/0.8318, allocations: 7.571 MB / 0.54 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005119/0.8324, allocations: 431.9 kB / 0.5404 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002616/0.835, allocations: 0.5895 MB / 0.541 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04044/0.8754, allocations: 16.86 MB / 0.5574 GB, free: 14.88 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005747/0.876, allocations: 87.41 kB / 0.5575 GB, free: 14.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002927/0.8789, allocations: 263.8 kB / 0.5578 GB, free: 14.54 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005383/0.8843, allocations: 2.662 MB / 0.5604 GB, free: 11.88 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03296/0.9173, allocations: 14.4 MB / 0.5744 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2937/1.211, allocations: 63.78 MB / 0.6367 GB, free: 124.6 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02258/1.234, allocations: 8.343 MB / 0.6449 GB, free: 123.9 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004811/1.238, allocations: 4.56 MB / 0.6493 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02158/1.26, allocations: 18.15 MB / 0.667 GB, free: 115 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/1.26, allocations: 57.38 kB / 0.6671 GB, free: 114.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=281): time 4.759e-06/1.26, allocations: 3.781 kB / 0.6671 GB, free: 114.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=374): time 0.2439/1.504, allocations: 73.07 MB / 0.7384 GB, free: 52.77 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/1.504, allocations: 380.1 kB / 0.7388 GB, free: 52.32 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/1.515, allocations: 6.435 MB / 0.7451 GB, free: 45.89 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001095/1.516, allocations: 85.7 kB / 0.7452 GB, free: 45.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002828/1.519, allocations: 5.016 MB / 0.7501 GB, free: 40.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00194/1.521, allocations: 1.427 MB / 0.7515 GB, free: 39.39 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004579/1.526, allocations: 1.849 MB / 0.7533 GB, free: 37.53 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.288e-05/1.526, allocations: 305.1 kB / 0.7536 GB, free: 37.23 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006702/1.532, allocations: 5.655 MB / 0.7591 GB, free: 31.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008858/1.541, allocations: 10.62 MB / 0.7695 GB, free: 18.59 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0185/1.56, allocations: 17.36 MB / 0.7864 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001971/1.56, allocations: 52 kB / 0.7865 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.05157/1.611, allocations: 21.92 MB / 0.8079 GB, free: 8.891 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002514/1.612, allocations: 81.78 kB / 0.8079 GB, free: 8.812 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003501/1.612, allocations: 172.1 kB / 0.8081 GB, free: 8.645 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02398/1.636, allocations: 6.861 MB / 0.8148 GB, free: 1.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008065/1.644, allocations: 2.066 MB / 0.8168 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2905/1.935, allocations: 36.41 MB / 0.8524 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008151/1.943, allocations: 0.7155 MB / 0.8531 GB, free: 178.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/1.944, allocations: 0.5122 MB / 0.8536 GB, free: 178.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 (1015): * Single equations (assignments): 1008 * 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.005428/1.95, allocations: 3.418 MB / 0.8569 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/1.951, allocations: 0.6214 MB / 0.8575 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03026/1.981, allocations: 16.02 MB / 0.8732 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/1.981, allocations: 50.36 kB / 0.8732 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.323e-05/1.981, allocations: 22.81 kB / 0.8732 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.239e-05/1.982, allocations: 18.25 kB / 0.8732 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04931/2.031, allocations: 31.23 MB / 0.9037 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.896e-05/2.031, allocations: 4.688 kB / 0.9037 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00318/2.034, allocations: 0.6083 MB / 0.9043 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01836/2.052, allocations: 6.438 MB / 0.9106 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009206/2.053, allocations: 60 kB / 0.9107 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03751/2.091, allocations: 34.63 MB / 0.9445 GB, free: 111.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/2.091, allocations: 8.5 kB / 0.9445 GB, free: 111.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03455/2.125, allocations: 23.49 MB / 0.9675 GB, free: 88.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/2.127, allocations: 0.6545 MB / 0.9681 GB, free: 87.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001504/2.128, allocations: 67.94 kB / 0.9682 GB, free: 87.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004407/2.133, allocations: 424.7 kB / 0.9686 GB, free: 87.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/2.134, allocations: 253 kB / 0.9688 GB, free: 86.81 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003416/2.134, allocations: 95.98 kB / 0.9689 GB, free: 86.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00511/2.14, allocations: 4.107 MB / 0.9729 GB, free: 82.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.14, allocations: 0 / 0.9729 GB, free: 82.62 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008235/2.148, allocations: 2.18 MB / 0.975 GB, free: 80.45 MB / 0.5606 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.0359/2.184, allocations: 24.29 MB / 0.9988 GB, free: 56.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01954/2.203, allocations: 13.66 MB / 1.012 GB, free: 42.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/2.203, allocations: 7.938 kB / 1.012 GB, free: 42.43 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009394/2.213, allocations: 6.023 MB / 1.018 GB, free: 36.36 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009651/2.222, allocations: 0.9355 MB / 1.019 GB, free: 35.46 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3856/2.608, allocations: 102.7 MB / 1.119 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005253/2.613, allocations: 5.269 MB / 1.124 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005786/2.619, allocations: 3.033 MB / 1.127 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003896/2.623, allocations: 3.381 MB / 1.131 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.203e-06/2.623, allocations: 0 / 1.131 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4461/3.069, allocations: 167.8 MB / 1.294 GB, free: 166.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.97/29.04, allocations: 5.312 kB / 1.295 GB, free: 166.8 MB / 0.5606 GB " [Timeout remaining time 631] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 32.883374688914046]