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.001542/0.001542, allocations: 108.2 kB / 21.18 MB, free: 0.6992 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.002026/0.002026, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.484/1.484, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.001971/0.001971, allocations: 55.91 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3145, allocations: 49.16 MB / 396.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0194/0.3339, allocations: 18.69 MB / 415 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01647/0.3503, allocations: 6.203 MB / 421.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006287/0.3566, allocations: 170.1 kB / 421.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01291/0.3695, allocations: 6.37 MB / 427.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009502/0.379, allocations: 2.936 MB / 430.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007267/0.3863, allocations: 2.323 MB / 433 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01474/0.401, allocations: 8.843 MB / 441.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009447/0.4105, allocations: 6.241 MB / 448.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006739/0.4172, allocations: 3.28 MB / 451.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007894/0.4251, allocations: 4.499 MB / 455.9 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002732/0.4279, allocations: 0.7148 MB / 456.6 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005485/0.4333, allocations: 1.959 MB / 458.6 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006006/0.4393, allocations: 3.958 MB / 462.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009415/0.4488, allocations: 4.446 MB / 467 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0222/0.471, allocations: 13.98 MB / 481 MB, free: 14.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.471, allocations: 4 kB / 481 MB, free: 14.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.471, allocations: 0 / 481 MB, free: 14.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005319/0.4715, allocations: 0 / 481 MB, free: 14.41 MB / 398.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.033/0.5045, allocations: 9.631 MB / 490.6 MB, free: 4.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.5046, allocations: 11.98 kB / 490.6 MB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004357/0.5089, allocations: 1.143 MB / 491.8 MB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3141/0.823, allocations: 23.28 MB / 0.503 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02457/0.8476, allocations: 8.538 MB / 0.5113 GB, free: 3.602 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000535/0.8481, allocations: 435.7 kB / 0.5117 GB, free: 3.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003229/0.8513, allocations: 0.5856 MB / 0.5123 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04201/0.8933, allocations: 16.88 MB / 0.5288 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000432/0.8938, allocations: 79.47 kB / 0.5289 GB, free: 0.668 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002216/0.896, allocations: 263.8 kB / 0.5291 GB, free: 420 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005071/0.9011, allocations: 2.662 MB / 0.5317 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03332/0.9344, allocations: 14.41 MB / 0.5458 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5002/1.435, allocations: 63.74 MB / 0.608 GB, free: 100.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01977/1.454, allocations: 7.913 MB / 0.6157 GB, free: 96.45 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004586/1.459, allocations: 4.585 MB / 0.6202 GB, free: 92.08 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02205/1.481, allocations: 17.49 MB / 0.6373 GB, free: 74.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/1.481, allocations: 64.5 kB / 0.6374 GB, free: 74.73 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.6e-06/1.481, allocations: 3.969 kB / 0.6374 GB, free: 74.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.22/1.701, allocations: 73.17 MB / 0.7088 GB, free: 2.035 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/1.701, allocations: 376.6 kB / 0.7092 GB, free: 1.586 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00997/1.711, allocations: 6.503 MB / 0.7155 GB, free: 11.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001115/1.712, allocations: 81.7 kB / 0.7156 GB, free: 11.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004424/1.717, allocations: 5.039 MB / 0.7205 GB, free: 6.418 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002444/1.719, allocations: 1.438 MB / 0.7219 GB, free: 4.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003296/1.722, allocations: 1.849 MB / 0.7237 GB, free: 3.105 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/1.723, allocations: 305.1 kB / 0.724 GB, free: 2.805 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009108/1.732, allocations: 5.655 MB / 0.7296 GB, free: 13.13 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0136/1.745, allocations: 10.62 MB / 0.7399 GB, free: 80 kB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2571/2.002, allocations: 17.36 MB / 0.7569 GB, free: 172 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001611/2.003, allocations: 48.78 kB / 0.7569 GB, free: 172 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04617/2.049, allocations: 21.93 MB / 0.7783 GB, free: 166 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/2.049, allocations: 81.91 kB / 0.7784 GB, free: 166 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002573/2.049, allocations: 174.6 kB / 0.7786 GB, free: 166 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01982/2.069, allocations: 6.853 MB / 0.7853 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007256/2.076, allocations: 2.074 MB / 0.7873 GB, free: 164.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04138/2.118, allocations: 36.1 MB / 0.8226 GB, free: 129.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009972/2.127, allocations: 0.7113 MB / 0.8233 GB, free: 129.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00186/2.129, allocations: 0.5117 MB / 0.8238 GB, free: 128.7 MB / 0.5138 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.005847/2.135, allocations: 3.423 MB / 0.8271 GB, free: 125.3 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/2.137, allocations: 0.6212 MB / 0.8277 GB, free: 125 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02696/2.164, allocations: 16.04 MB / 0.8434 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.358e-05/2.164, allocations: 48 kB / 0.8434 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-05/2.164, allocations: 16 kB / 0.8434 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.706e-05/2.164, allocations: 19.92 kB / 0.8434 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0474/2.211, allocations: 31.22 MB / 0.8739 GB, free: 77.26 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.152e-05/2.211, allocations: 3.938 kB / 0.8739 GB, free: 77.25 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/2.214, allocations: 0.6084 MB / 0.8745 GB, free: 76.64 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01663/2.231, allocations: 6.438 MB / 0.8808 GB, free: 70.19 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008417/2.232, allocations: 64 kB / 0.8809 GB, free: 70.12 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03674/2.269, allocations: 34.34 MB / 0.9144 GB, free: 35.45 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/2.269, allocations: 7.938 kB / 0.9144 GB, free: 35.44 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03469/2.303, allocations: 23.5 MB / 0.9374 GB, free: 11.81 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005366/2.309, allocations: 1.582 MB / 0.9389 GB, free: 10.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001811/2.31, allocations: 63.59 kB / 0.939 GB, free: 10.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004176/2.315, allocations: 431.3 kB / 0.9394 GB, free: 9.754 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001068/2.316, allocations: 266.5 kB / 0.9397 GB, free: 9.488 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003297/2.316, allocations: 92 kB / 0.9397 GB, free: 9.398 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005671/2.322, allocations: 4.164 MB / 0.9438 GB, free: 5.246 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/2.322, allocations: 0 / 0.9438 GB, free: 5.246 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.2388/2.56, allocations: 2.191 MB / 0.9459 GB, free: 166 MB / 0.5138 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.04528/2.606, allocations: 24.28 MB / 0.9697 GB, free: 160.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02043/2.626, allocations: 13.67 MB / 0.983 GB, free: 155.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/2.626, allocations: 0 / 0.983 GB, free: 155.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.009207/2.635, allocations: 6.02 MB / 0.9889 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007041/2.642, allocations: 0.9457 MB / 0.9898 GB, free: 151.5 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1492/2.792, allocations: 103.3 MB / 1.091 GB, free: 42.82 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00601/2.798, allocations: 5.291 MB / 1.096 GB, free: 37.49 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006247/2.804, allocations: 3.037 MB / 1.099 GB, free: 34.45 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005341/2.809, allocations: 3.405 MB / 1.102 GB, free: 31.04 MB / 0.5138 GB Notification: Performance of SimCode: time 1.493e-06/2.809, allocations: 0 / 1.102 GB, free: 31.04 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4617/3.271, allocations: 172.8 MB / 1.271 GB, free: 71.38 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.13/32.4, allocations: 0 / 1.271 GB, free: 71.38 MB / 0.5294 GB " [Timeout remaining time 627] (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: 36.246072797104716]