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.001372/0.001372, allocations: 103.6 kB / 21.18 MB, free: 332 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.001512/0.001512, allocations: 209.4 kB / 24.47 MB, free: 3.547 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.407/1.407, allocations: 207.7 MB / 235.3 MB, free: 9.793 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.001773/0.001773, allocations: 56.34 kB / 347.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2911, allocations: 49.15 MB / 396.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01534/0.3065, allocations: 16.05 MB / 412.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01427/0.3207, allocations: 5.965 MB / 418.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004452/0.3252, allocations: 169.8 kB / 418.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01207/0.3372, allocations: 6.086 MB / 424.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008786/0.346, allocations: 2.972 MB / 427.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005426/0.3515, allocations: 2.261 MB / 429.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01395/0.3654, allocations: 8.841 MB / 438.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008981/0.3744, allocations: 6.201 MB / 444.9 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005855/0.3802, allocations: 3.288 MB / 448.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007233/0.3875, allocations: 4.186 MB / 452.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00197/0.3895, allocations: 0.7187 MB / 453.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004203/0.3937, allocations: 1.807 MB / 454.9 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004856/0.3985, allocations: 3.943 MB / 458.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006309/0.4048, allocations: 3.447 MB / 462.3 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02013/0.4249, allocations: 14.05 MB / 476.3 MB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.425, allocations: 0 / 476.3 MB, free: 2.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.425, allocations: 0 / 476.3 MB, free: 2.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004781/0.4254, allocations: 0 / 476.3 MB, free: 2.863 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.03181/0.4572, allocations: 9.639 MB / 486 MB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.627e-05/0.4573, allocations: 11.98 kB / 486 MB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004772/0.4621, allocations: 1.139 MB / 487.1 MB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3331/0.7952, allocations: 23.28 MB / 0.4984 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02139/0.8166, allocations: 8.565 MB / 0.5068 GB, free: 8.023 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004919/0.8171, allocations: 435.7 kB / 0.5072 GB, free: 7.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0024/0.8195, allocations: 0.5934 MB / 0.5078 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03774/0.8572, allocations: 17.08 MB / 0.5245 GB, free: 4.914 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004389/0.8577, allocations: 83.39 kB / 0.5246 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001956/0.8596, allocations: 275.8 kB / 0.5248 GB, free: 4.562 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005124/0.8648, allocations: 2.654 MB / 0.5274 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03291/0.8977, allocations: 14.36 MB / 0.5414 GB, free: 3.52 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4379/1.336, allocations: 60.34 MB / 0.6004 GB, free: 101.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0207/1.356, allocations: 7.906 MB / 0.6081 GB, free: 98.09 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004872/1.361, allocations: 4.583 MB / 0.6126 GB, free: 95.74 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02557/1.387, allocations: 16.53 MB / 0.6287 GB, free: 81.71 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.59e-05/1.387, allocations: 63.94 kB / 0.6288 GB, free: 81.64 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.253e-06/1.387, allocations: 0 / 0.6288 GB, free: 81.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2412/1.628, allocations: 73.39 MB / 0.7004 GB, free: 8.836 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/1.628, allocations: 384.6 kB / 0.7008 GB, free: 8.379 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01137/1.639, allocations: 6.788 MB / 0.7074 GB, free: 1.797 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001193/1.641, allocations: 81.7 kB / 0.7075 GB, free: 1.711 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005113/1.646, allocations: 5.039 MB / 0.7124 GB, free: 12.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002491/1.648, allocations: 1.425 MB / 0.7138 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005819/1.654, allocations: 1.849 MB / 0.7156 GB, free: 9.707 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/1.654, allocations: 308.9 kB / 0.7159 GB, free: 9.406 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009577/1.664, allocations: 5.659 MB / 0.7215 GB, free: 3.738 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01622/1.68, allocations: 10.81 MB / 0.732 GB, free: 6.438 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02556/1.706, allocations: 17.37 MB / 0.749 GB, free: 2.641 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002017/1.706, allocations: 48 kB / 0.749 GB, free: 2.594 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2692/1.975, allocations: 21.93 MB / 0.7704 GB, free: 184 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000149/1.975, allocations: 77.75 kB / 0.7705 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003037/1.975, allocations: 171.1 kB / 0.7707 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02326/1.999, allocations: 6.848 MB / 0.7774 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009899/2.009, allocations: 2.072 MB / 0.7794 GB, free: 184 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05679/2.065, allocations: 35.73 MB / 0.8143 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01289/2.078, allocations: 0.7144 MB / 0.815 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002377/2.081, allocations: 0.5077 MB / 0.8155 GB, free: 165.3 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.009119/2.09, allocations: 3.443 MB / 0.8188 GB, free: 162 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002834/2.093, allocations: 0.6251 MB / 0.8194 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04199/2.135, allocations: 16.02 MB / 0.8351 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-05/2.135, allocations: 55.89 kB / 0.8351 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.593e-05/2.135, allocations: 20 kB / 0.8351 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.38e-05/2.135, allocations: 15.94 kB / 0.8352 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05278/2.188, allocations: 29.93 MB / 0.8644 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.331e-05/2.188, allocations: 4 kB / 0.8644 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003278/2.191, allocations: 0.6045 MB / 0.865 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01827/2.209, allocations: 6.431 MB / 0.8713 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008639/2.21, allocations: 67.75 kB / 0.8713 GB, free: 108.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03862/2.249, allocations: 33.97 MB / 0.9045 GB, free: 74.33 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/2.249, allocations: 11.92 kB / 0.9045 GB, free: 74.32 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03633/2.285, allocations: 23.52 MB / 0.9275 GB, free: 50.83 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004797/2.29, allocations: 1.582 MB / 0.929 GB, free: 49.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002111/2.292, allocations: 67.98 kB / 0.9291 GB, free: 49.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/2.297, allocations: 431.2 kB / 0.9295 GB, free: 48.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001362/2.299, allocations: 258.6 kB / 0.9298 GB, free: 48.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006383/2.299, allocations: 91.98 kB / 0.9298 GB, free: 48.42 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006403/2.306, allocations: 4.163 MB / 0.9339 GB, free: 44.27 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/2.306, allocations: 1.641 kB / 0.9339 GB, free: 44.27 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009304/2.315, allocations: 2.198 MB / 0.9361 GB, free: 42.09 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.03857/2.354, allocations: 24.29 MB / 0.9598 GB, free: 17.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2444/2.598, allocations: 13.65 MB / 0.9731 GB, free: 189.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/2.598, allocations: 1.844 kB / 0.9731 GB, free: 189.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01075/2.609, allocations: 6.031 MB / 0.979 GB, free: 186.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00669/2.615, allocations: 0.9453 MB / 0.9799 GB, free: 186.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1507/2.766, allocations: 103.3 MB / 1.081 GB, free: 88.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006025/2.772, allocations: 4.818 MB / 1.085 GB, free: 83.25 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006356/2.778, allocations: 3.034 MB / 1.088 GB, free: 80.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004624/2.783, allocations: 3.413 MB / 1.092 GB, free: 76.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/2.783, allocations: 0 / 1.092 GB, free: 76.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4572/3.24, allocations: 170.2 MB / 1.258 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.24/27.48, allocations: 11.78 kB / 1.258 GB, free: 106.4 MB / 0.5294 GB " [Timeout remaining time 632] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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.csv","/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.201593877747655]