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.0008303/0.0008303, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008617/0.0008617, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8365/0.8365, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.513e-06/1.513e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.22e-05/1.372e-05, allocations: 6.281 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01123/0.01124, allocations: 15.62 MB / 340.2 MB, free: 236 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.0232, allocations: 5.865 MB / 346.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004171/0.02738, allocations: 171.1 kB / 346.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007013/0.03439, allocations: 6.394 MB / 352.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006178/0.04057, allocations: 2.994 MB / 355.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003475/0.04404, allocations: 2.448 MB / 358.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01014/0.05418, allocations: 11.13 MB / 369.2 MB, free: 3.16 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007898/0.06208, allocations: 7.23 MB / 376.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007983/0.07006, allocations: 4.94 MB / 381.4 MB, free: 6.883 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005923/0.07598, allocations: 4.653 MB / 386 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001613/0.0776, allocations: 0.7383 MB / 386.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002771/0.08037, allocations: 1.869 MB / 388.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002776/0.08314, allocations: 4.103 MB / 392.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003096/0.08624, allocations: 2.829 MB / 395.5 MB, free: 8.66 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.09804, allocations: 14.16 MB / 409.7 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.09805, allocations: 0 / 409.7 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.09805, allocations: 0 / 409.7 MB, free: 10.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004222/0.09847, allocations: 4 kB / 409.7 MB, free: 10.46 MB / 378.7 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.01985/0.1183, allocations: 9.771 MB / 419.5 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.1184, allocations: 8.031 kB / 419.5 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002356/0.1207, allocations: 1.143 MB / 420.6 MB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1374/0.2581, allocations: 24.09 MB / 444.7 MB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01556/0.2737, allocations: 6.808 MB / 451.5 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003625/0.2741, allocations: 435.7 kB / 451.9 MB, free: 12 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2864/0.5605, allocations: 0.5749 MB / 452.5 MB, free: 110.3 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02321/0.5837, allocations: 17.1 MB / 469.6 MB, free: 99.08 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001972/0.5839, allocations: 88.61 kB / 469.7 MB, free: 99 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000533/0.5844, allocations: 266 kB / 470 MB, free: 98.79 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002008/0.5864, allocations: 2.659 MB / 472.6 MB, free: 96.14 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.6039, allocations: 14.38 MB / 487 MB, free: 81.77 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04801/0.6519, allocations: 60.97 MB / 0.5351 GB, free: 20.4 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/0.6637, allocations: 8.136 MB / 0.5431 GB, free: 12.28 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.6673, allocations: 4.591 MB / 0.5476 GB, free: 7.688 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01814/0.6854, allocations: 17.08 MB / 0.5642 GB, free: 6.719 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/0.6855, allocations: 76.47 kB / 0.5643 GB, free: 6.641 MB / 426.8 MB Notification: Performance of pre-optimization done (n=281): time 6.793e-06/0.6855, allocations: 0 / 0.5643 GB, free: 6.641 MB / 426.8 MB Notification: Performance of matching and sorting (n=374): time 0.3176/1.003, allocations: 75.54 MB / 0.6381 GB, free: 154.1 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.718e-05/1.003, allocations: 375 kB / 0.6384 GB, free: 153.7 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007345/1.011, allocations: 7.433 MB / 0.6457 GB, free: 151.2 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001104/1.012, allocations: 81.55 kB / 0.6458 GB, free: 151.1 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001985/1.014, allocations: 4.98 MB / 0.6506 GB, free: 147.3 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001488/1.015, allocations: 1.415 MB / 0.652 GB, free: 146 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001765/1.017, allocations: 1.825 MB / 0.6538 GB, free: 144.3 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 5.274e-05/1.017, allocations: 305.1 kB / 0.6541 GB, free: 144 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004317/1.021, allocations: 5.663 MB / 0.6596 GB, free: 138.3 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005669/1.027, allocations: 10.81 MB / 0.6702 GB, free: 125 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/1.04, allocations: 17.37 MB / 0.6871 GB, free: 105.4 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001484/1.04, allocations: 48 kB / 0.6872 GB, free: 105.3 MB / 474.8 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.02741/1.067, allocations: 21.92 MB / 0.7086 GB, free: 83.36 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.456e-05/1.068, allocations: 80 kB / 0.7087 GB, free: 83.29 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/1.068, allocations: 171.9 kB / 0.7088 GB, free: 83.12 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01102/1.079, allocations: 6.853 MB / 0.7155 GB, free: 76.25 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004589/1.083, allocations: 2.07 MB / 0.7176 GB, free: 74.17 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02996/1.113, allocations: 35.92 MB / 0.7526 GB, free: 37.93 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007928/1.121, allocations: 0.8386 MB / 0.7534 GB, free: 37.09 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/1.123, allocations: 0.5116 MB / 0.7539 GB, free: 36.58 MB / 474.8 MB 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.005691/1.129, allocations: 3.414 MB / 0.7573 GB, free: 33.16 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00155/1.13, allocations: 0.6132 MB / 0.7579 GB, free: 32.54 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01754/1.148, allocations: 16.03 MB / 0.7735 GB, free: 16.44 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.899e-05/1.148, allocations: 59.84 kB / 0.7736 GB, free: 16.39 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.364e-05/1.148, allocations: 16 kB / 0.7736 GB, free: 16.37 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.396e-05/1.148, allocations: 15.94 kB / 0.7736 GB, free: 16.36 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.215/1.363, allocations: 30.17 MB / 0.8031 GB, free: 141.4 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-05/1.363, allocations: 3.75 kB / 0.8031 GB, free: 141.4 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/1.365, allocations: 0.6138 MB / 0.8037 GB, free: 141.3 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01067/1.376, allocations: 6.421 MB / 0.81 GB, free: 140.3 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007462/1.376, allocations: 63.47 kB / 0.81 GB, free: 140.2 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02706/1.404, allocations: 34.17 MB / 0.8434 GB, free: 112.6 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/1.404, allocations: 7.938 kB / 0.8434 GB, free: 112.6 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02378/1.427, allocations: 23.5 MB / 0.8663 GB, free: 89.36 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002127/1.429, allocations: 0.6953 MB / 0.867 GB, free: 89.02 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00162/1.431, allocations: 63.98 kB / 0.8671 GB, free: 88.95 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003509/1.435, allocations: 0.5226 MB / 0.8676 GB, free: 88.43 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001059/1.436, allocations: 268.9 kB / 0.8679 GB, free: 88.17 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002434/1.436, allocations: 92 kB / 0.8679 GB, free: 88.08 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.005407/1.441, allocations: 4.669 MB / 0.8725 GB, free: 83.42 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.2e-07/1.441, allocations: 0 / 0.8725 GB, free: 83.42 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.008928/1.45, allocations: 2.523 MB / 0.875 GB, free: 80.91 MB / 474.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.0252/1.475, allocations: 24.29 MB / 0.8987 GB, free: 56.93 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01465/1.49, allocations: 13.66 MB / 0.912 GB, free: 43.33 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/1.49, allocations: 4 kB / 0.912 GB, free: 43.33 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00664/1.497, allocations: 6.034 MB / 0.9179 GB, free: 37.25 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005448/1.502, allocations: 0.9449 MB / 0.9188 GB, free: 36.34 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2767/1.779, allocations: 105.3 MB / 1.022 GB, free: 119.8 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00483/1.784, allocations: 4.789 MB / 1.026 GB, free: 115 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004441/1.788, allocations: 3.055 MB / 1.029 GB, free: 112.1 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003653/1.792, allocations: 3.412 MB / 1.033 GB, free: 108.7 MB / 490.8 MB Notification: Performance of SimCode: time 1.333e-06/1.792, allocations: 0 / 1.033 GB, free: 108.7 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3118/2.104, allocations: 173.8 MB / 1.202 GB, free: 129.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/15.04, allocations: 8.953 kB / 1.202 GB, free: 129.4 MB / 0.4949 GB " [Timeout remaining time 645] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/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: 17.594495770521462]