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.001308/0.001308, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001393/0.001393, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 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 1.393/1.393, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 55.91 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3041, allocations: 49.16 MB / 396.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01715/0.3212, allocations: 16.05 MB / 412.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.3369, allocations: 5.959 MB / 418.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005125/0.342, allocations: 169.6 kB / 418.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01372/0.3557, allocations: 6.094 MB / 424.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009089/0.3648, allocations: 2.959 MB / 427.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005544/0.3703, allocations: 2.265 MB / 429.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01333/0.3837, allocations: 8.831 MB / 438.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01068/0.3944, allocations: 6.215 MB / 444.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007082/0.4014, allocations: 3.28 MB / 448.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00774/0.4092, allocations: 4.19 MB / 452.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002521/0.4117, allocations: 0.7187 MB / 453.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005372/0.4171, allocations: 1.81 MB / 454.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005897/0.423, allocations: 3.947 MB / 458.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008818/0.4318, allocations: 3.436 MB / 462.3 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02024/0.452, allocations: 14.05 MB / 476.3 MB, free: 2.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.452, allocations: 0 / 476.3 MB, free: 2.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.452, allocations: 0 / 476.3 MB, free: 2.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004238/0.4525, allocations: 0 / 476.3 MB, free: 2.867 MB / 382.1 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.03174/0.4842, allocations: 9.647 MB / 486 MB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.4843, allocations: 11.98 kB / 486 MB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003409/0.4877, allocations: 1.135 MB / 487.1 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3233/0.8109, allocations: 23.28 MB / 0.4984 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02285/0.8338, allocations: 8.565 MB / 0.5068 GB, free: 8.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000531/0.8343, allocations: 431.7 kB / 0.5072 GB, free: 7.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002603/0.8369, allocations: 0.5895 MB / 0.5078 GB, free: 7.008 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0394/0.8763, allocations: 17.09 MB / 0.5245 GB, free: 4.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003582/0.8767, allocations: 75.42 kB / 0.5246 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001966/0.8786, allocations: 267.8 kB / 0.5248 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00527/0.8839, allocations: 2.658 MB / 0.5274 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0327/0.9166, allocations: 14.36 MB / 0.5414 GB, free: 3.527 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.53/1.447, allocations: 60.35 MB / 0.6004 GB, free: 101.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/1.469, allocations: 7.908 MB / 0.6081 GB, free: 98.22 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005181/1.474, allocations: 4.585 MB / 0.6126 GB, free: 95.86 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02344/1.497, allocations: 16.53 MB / 0.6287 GB, free: 81.86 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/1.497, allocations: 64.22 kB / 0.6288 GB, free: 81.79 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.374e-06/1.497, allocations: 0 / 0.6288 GB, free: 81.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2343/1.732, allocations: 73.39 MB / 0.7004 GB, free: 8.996 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000165/1.732, allocations: 380.6 kB / 0.7008 GB, free: 8.543 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009231/1.741, allocations: 6.79 MB / 0.7074 GB, free: 1.957 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001186/1.742, allocations: 81.7 kB / 0.7075 GB, free: 1.871 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004189/1.746, allocations: 5.039 MB / 0.7124 GB, free: 13.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002582/1.749, allocations: 1.43 MB / 0.7138 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003528/1.752, allocations: 1.845 MB / 0.7156 GB, free: 9.871 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/1.753, allocations: 304.9 kB / 0.7159 GB, free: 9.574 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01014/1.763, allocations: 5.667 MB / 0.7214 GB, free: 3.898 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01645/1.779, allocations: 10.82 MB / 0.732 GB, free: 6.598 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02557/1.805, allocations: 17.37 MB / 0.749 GB, free: 2.801 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001961/1.805, allocations: 48 kB / 0.749 GB, free: 2.754 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2846/2.09, allocations: 21.92 MB / 0.7704 GB, free: 184 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001598/2.09, allocations: 77.53 kB / 0.7705 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003857/2.09, allocations: 172 kB / 0.7707 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02359/2.114, allocations: 6.85 MB / 0.7773 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008613/2.122, allocations: 2.077 MB / 0.7794 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04724/2.17, allocations: 35.73 MB / 0.8143 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009962/2.179, allocations: 0.7145 MB / 0.815 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/2.182, allocations: 0.5038 MB / 0.8155 GB, free: 165.6 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.005624/2.187, allocations: 3.439 MB / 0.8188 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/2.189, allocations: 0.6221 MB / 0.8194 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02942/2.218, allocations: 16.03 MB / 0.8351 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.66e-05/2.218, allocations: 51.84 kB / 0.8351 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.923e-05/2.218, allocations: 20 kB / 0.8351 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.664e-05/2.218, allocations: 23.86 kB / 0.8352 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05013/2.269, allocations: 29.93 MB / 0.8644 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.834e-05/2.269, allocations: 0 / 0.8644 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003231/2.272, allocations: 0.6051 MB / 0.865 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01835/2.29, allocations: 6.434 MB / 0.8713 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/2.291, allocations: 64 kB / 0.8713 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03989/2.331, allocations: 33.99 MB / 0.9045 GB, free: 74.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/2.331, allocations: 4 kB / 0.9045 GB, free: 74.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03669/2.368, allocations: 23.52 MB / 0.9275 GB, free: 51.11 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00597/2.374, allocations: 1.59 MB / 0.929 GB, free: 49.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002168/2.376, allocations: 60 kB / 0.9291 GB, free: 49.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005378/2.381, allocations: 434.8 kB / 0.9295 GB, free: 49.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/2.383, allocations: 262.5 kB / 0.9298 GB, free: 48.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003475/2.383, allocations: 91.98 kB / 0.9299 GB, free: 48.69 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006319/2.389, allocations: 4.167 MB / 0.9339 GB, free: 44.54 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/2.389, allocations: 0 / 0.9339 GB, free: 44.54 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01047/2.4, allocations: 2.196 MB / 0.9361 GB, free: 42.35 MB / 0.5294 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.03706/2.437, allocations: 24.28 MB / 0.9598 GB, free: 17.97 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2563/2.693, allocations: 13.65 MB / 0.9731 GB, free: 189.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/2.693, allocations: 1.594 kB / 0.9731 GB, free: 189.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01148/2.705, allocations: 6.028 MB / 0.979 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00648/2.711, allocations: 0.941 MB / 0.9799 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1596/2.871, allocations: 103.3 MB / 1.081 GB, free: 88.46 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006202/2.877, allocations: 4.81 MB / 1.085 GB, free: 83.62 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006573/2.883, allocations: 3.034 MB / 1.088 GB, free: 80.58 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004355/2.888, allocations: 3.409 MB / 1.092 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of SimCode: time 1.764e-06/2.888, allocations: 0 / 1.092 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4756/3.363, allocations: 170.2 MB / 1.258 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.61/25.97, allocations: 11.83 kB / 1.258 GB, free: 106.6 MB / 0.5294 GB " [Timeout remaining time 634] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 29.983731935266405]