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.001468/0.001468, allocations: 103.9 kB / 21.21 MB, free: 0.6289 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.001519/0.001519, allocations: 188.8 kB / 24.49 MB, free: 3.941 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.319/1.319, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 47.92 kB / 371.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2217, allocations: 52.19 MB / 423.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01768/0.2393, allocations: 15.64 MB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.2514, allocations: 5.831 MB / 444.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002593/0.254, allocations: 175.1 kB / 445 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.2651, allocations: 6.091 MB / 451.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0073/0.2724, allocations: 2.944 MB / 454 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005128/0.2775, allocations: 2.249 MB / 456.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01326/0.2908, allocations: 9.51 MB / 465.8 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008958/0.2998, allocations: 6.236 MB / 472 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005548/0.3053, allocations: 3.257 MB / 475.3 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007723/0.313, allocations: 4.479 MB / 479.8 MB, free: 5.699 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002253/0.3153, allocations: 0.7148 MB / 480.5 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004361/0.3196, allocations: 1.83 MB / 482.3 MB, free: 3.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005154/0.3248, allocations: 3.927 MB / 486.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005804/0.3306, allocations: 3.42 MB / 489.7 MB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01742/0.348, allocations: 13.99 MB / 0.4919 GB, free: 13.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.348, allocations: 0 / 0.4919 GB, free: 13.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.348, allocations: 0 / 0.4919 GB, free: 13.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000502/0.3485, allocations: 3.938 kB / 0.4919 GB, free: 13.73 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.02658/0.3751, allocations: 9.581 MB / 0.5012 GB, free: 4.066 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3752, allocations: 8.031 kB / 0.5012 GB, free: 4.059 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001944/0.3754, allocations: 179.7 kB / 0.5014 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002113/0.3775, allocations: 1.135 MB / 0.5025 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2763/0.6537, allocations: 23.27 MB / 0.5252 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0187/0.6724, allocations: 7.905 MB / 0.5329 GB, free: 3.445 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004787/0.6729, allocations: 439.5 kB / 0.5334 GB, free: 3.016 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002392/0.6753, allocations: 0.5817 MB / 0.5339 GB, free: 2.434 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3554/1.031, allocations: 17.09 MB / 0.5506 GB, free: 96.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00023/1.031, allocations: 82.75 kB / 0.5507 GB, free: 96.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007061/1.032, allocations: 267.2 kB / 0.551 GB, free: 96.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003587/1.035, allocations: 2.654 MB / 0.5535 GB, free: 93.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.023/1.058, allocations: 14.4 MB / 0.5676 GB, free: 79.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05987/1.118, allocations: 60.21 MB / 0.6264 GB, free: 18.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01871/1.137, allocations: 7.891 MB / 0.6341 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004311/1.141, allocations: 4.589 MB / 0.6386 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02423/1.165, allocations: 16.51 MB / 0.6547 GB, free: 5.957 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/1.165, allocations: 64.5 kB / 0.6548 GB, free: 5.887 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 7.514e-06/1.165, allocations: 3.969 kB / 0.6548 GB, free: 5.887 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2479/1.413, allocations: 73.16 MB / 0.7262 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/1.414, allocations: 376.6 kB / 0.7266 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009516/1.423, allocations: 6.428 MB / 0.7329 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008752/1.424, allocations: 89.7 kB / 0.733 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00444/1.428, allocations: 5.021 MB / 0.7379 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.1991/1.627, allocations: 1.425 MB / 0.7392 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004159/1.632, allocations: 1.844 MB / 0.7411 GB, free: 185.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.093e-05/1.632, allocations: 304.5 kB / 0.7413 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006626/1.638, allocations: 5.66 MB / 0.7469 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008495/1.647, allocations: 10.82 MB / 0.7574 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01543/1.662, allocations: 17.37 MB / 0.7744 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001783/1.662, allocations: 51.28 kB / 0.7744 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03626/1.699, allocations: 21.92 MB / 0.7959 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000218/1.699, allocations: 76 kB / 0.7959 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002386/1.699, allocations: 172 kB / 0.7961 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01784/1.717, allocations: 6.846 MB / 0.8028 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006494/1.723, allocations: 2.075 MB / 0.8048 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03789/1.761, allocations: 35.74 MB / 0.8397 GB, free: 97.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008362/1.77, allocations: 0.7132 MB / 0.8404 GB, free: 96.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001605/1.771, allocations: 0.5136 MB / 0.8409 GB, free: 96.48 MB / 0.5294 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.005052/1.776, allocations: 3.421 MB / 0.8442 GB, free: 93.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.778, allocations: 0.6165 MB / 0.8448 GB, free: 92.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02543/1.803, allocations: 16.03 MB / 0.8605 GB, free: 76.79 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.699e-05/1.803, allocations: 48.11 kB / 0.8606 GB, free: 76.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.934e-05/1.803, allocations: 20 kB / 0.8606 GB, free: 76.72 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.477e-05/1.803, allocations: 19.83 kB / 0.8606 GB, free: 76.71 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04447/1.848, allocations: 29.91 MB / 0.8898 GB, free: 46.49 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.541e-05/1.848, allocations: 8.062 kB / 0.8898 GB, free: 46.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003067/1.851, allocations: 0.6045 MB / 0.8904 GB, free: 45.88 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01671/1.867, allocations: 6.436 MB / 0.8967 GB, free: 39.42 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000919/1.868, allocations: 60 kB / 0.8967 GB, free: 39.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03489/1.903, allocations: 33.99 MB / 0.9299 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.903, allocations: 8 kB / 0.9299 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2527/2.156, allocations: 23.51 MB / 0.9529 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/2.158, allocations: 0.5733 MB / 0.9535 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/2.159, allocations: 70.94 kB / 0.9535 GB, free: 180.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003814/2.163, allocations: 423.1 kB / 0.9539 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/2.164, allocations: 265.6 kB / 0.9542 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003624/2.164, allocations: 94.34 kB / 0.9543 GB, free: 180.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005546/2.17, allocations: 4.113 MB / 0.9583 GB, free: 178.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.1e-08/2.17, allocations: 3.375 kB / 0.9583 GB, free: 178.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008993/2.179, allocations: 2.195 MB / 0.9604 GB, free: 178.5 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.03356/2.213, allocations: 24.27 MB / 0.9841 GB, free: 163 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01699/2.23, allocations: 13.66 MB / 0.9975 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/2.23, allocations: 0 / 0.9975 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00813/2.238, allocations: 6.031 MB / 1.003 GB, free: 143.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007449/2.245, allocations: 0.9485 MB / 1.004 GB, free: 142.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1563/2.401, allocations: 102.9 MB / 1.105 GB, free: 32.01 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008733/2.41, allocations: 4.798 MB / 1.109 GB, free: 27.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006298/2.416, allocations: 3.025 MB / 1.112 GB, free: 24.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00437/2.421, allocations: 3.389 MB / 1.116 GB, free: 20.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/2.421, allocations: 0 / 1.116 GB, free: 20.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.396/2.817, allocations: 168.8 MB / 1.281 GB, free: 83.15 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.51/29.33, allocations: 7 kB / 1.281 GB, free: 83.15 MB / 0.5607 GB " [Timeout remaining time 630] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 34.46433350001462]