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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001278, allocations: 113.4 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 188.2 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.257/1.257, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001279/0.00128, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07498/0.07627, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.1781/0.2544, allocations: 18.57 MB / 393.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.267, allocations: 6.152 MB / 399.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00415/0.2712, allocations: 143.6 kB / 399.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.2827, allocations: 6.277 MB / 405.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007778/0.2905, allocations: 2.854 MB / 408.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004886/0.2954, allocations: 2.276 MB / 410.9 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.3073, allocations: 8.848 MB / 419.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008435/0.3158, allocations: 8.428 MB / 428.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005039/0.3209, allocations: 3.225 MB / 431.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005555/0.3265, allocations: 4.195 MB / 435.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001749/0.3282, allocations: 0.7227 MB / 436.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004358/0.3326, allocations: 1.904 MB / 438.2 MB, free: 76 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004683/0.3373, allocations: 3.839 MB / 442.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007358/0.3447, allocations: 4.446 MB / 446.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01521/0.3599, allocations: 13.93 MB / 460.5 MB, free: 9.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.36, allocations: 0 / 460.5 MB, free: 9.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.36, allocations: 7.938 kB / 460.5 MB, free: 9.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003633/0.3604, allocations: 4 kB / 460.5 MB, free: 9.773 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.02612/0.3865, allocations: 9.473 MB / 469.9 MB, free: 216 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3866, allocations: 16.03 kB / 470 MB, free: 200 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003033/0.3896, allocations: 1.139 MB / 471.1 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2838/0.6734, allocations: 23.23 MB / 494.3 MB, free: 7.777 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01853/0.6919, allocations: 8.615 MB / 0.4912 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000396/0.6924, allocations: 439.9 kB / 0.4916 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002175/0.6946, allocations: 0.5815 MB / 0.4921 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03347/0.7281, allocations: 16.87 MB / 0.5086 GB, free: 12.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003453/0.7284, allocations: 79.27 kB / 0.5087 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00174/0.7302, allocations: 271.8 kB / 0.5089 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00439/0.7346, allocations: 2.654 MB / 0.5115 GB, free: 9.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02865/0.7633, allocations: 14.4 MB / 0.5256 GB, free: 10.83 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3693/1.133, allocations: 63.82 MB / 0.5879 GB, free: 105.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02073/1.153, allocations: 8.638 MB / 0.5964 GB, free: 102.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004638/1.158, allocations: 4.916 MB / 0.6012 GB, free: 100.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02105/1.179, allocations: 18.13 MB / 0.6189 GB, free: 90.45 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/1.179, allocations: 68.94 kB / 0.6189 GB, free: 90.39 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.23e-06/1.179, allocations: 0 / 0.6189 GB, free: 90.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2227/1.402, allocations: 72.99 MB / 0.6902 GB, free: 18.09 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.856e-05/1.402, allocations: 378.4 kB / 0.6906 GB, free: 17.64 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007326/1.409, allocations: 6.492 MB / 0.6969 GB, free: 11.15 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000843/1.41, allocations: 81.7 kB / 0.697 GB, free: 11.06 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/1.412, allocations: 4.86 MB / 0.7017 GB, free: 6.199 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001333/1.414, allocations: 1.371 MB / 0.7031 GB, free: 4.844 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002313/1.416, allocations: 1.835 MB / 0.7049 GB, free: 2.996 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.68e-05/1.416, allocations: 309.1 kB / 0.7052 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006486/1.423, allocations: 5.655 MB / 0.7107 GB, free: 13.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01021/1.433, allocations: 10.61 MB / 0.7211 GB, free: 52 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01904/1.452, allocations: 17.37 MB / 0.738 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001157/1.452, allocations: 48 kB / 0.7381 GB, free: 12.23 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2105/1.662, allocations: 21.96 MB / 0.7595 GB, free: 172.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.663, allocations: 78.59 kB / 0.7596 GB, free: 172.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002386/1.663, allocations: 173.3 kB / 0.7597 GB, free: 172.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01968/1.683, allocations: 6.864 MB / 0.7664 GB, free: 172.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006955/1.69, allocations: 2.08 MB / 0.7685 GB, free: 172.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0395/1.729, allocations: 36.39 MB / 0.804 GB, free: 152.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007792/1.737, allocations: 0.711 MB / 0.8047 GB, free: 152.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001262/1.738, allocations: 0.5155 MB / 0.8052 GB, free: 151.6 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.005015/1.743, allocations: 3.434 MB / 0.8086 GB, free: 148.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.745, allocations: 0.5921 MB / 0.8091 GB, free: 148.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02636/1.771, allocations: 16.1 MB / 0.8249 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.598e-05/1.771, allocations: 51.98 kB / 0.8249 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.331e-05/1.771, allocations: 19.94 kB / 0.8249 GB, free: 131.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.294e-05/1.771, allocations: 23.78 kB / 0.825 GB, free: 131.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04616/1.817, allocations: 31.32 MB / 0.8555 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-05/1.817, allocations: 5.625 kB / 0.8555 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003019/1.82, allocations: 0.6045 MB / 0.8561 GB, free: 99.73 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01709/1.838, allocations: 6.438 MB / 0.8624 GB, free: 93.28 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008067/1.838, allocations: 70.81 kB / 0.8625 GB, free: 93.21 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03595/1.874, allocations: 34.61 MB / 0.8963 GB, free: 58.39 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.874, allocations: 0 / 0.8963 GB, free: 58.39 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0335/1.908, allocations: 23.56 MB / 0.9193 GB, free: 34.82 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003563/1.912, allocations: 1.629 MB / 0.9209 GB, free: 33.16 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/1.913, allocations: 60 kB / 0.9209 GB, free: 33.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00415/1.917, allocations: 427.3 kB / 0.9214 GB, free: 32.68 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009496/1.918, allocations: 250.6 kB / 0.9216 GB, free: 32.44 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003347/1.918, allocations: 92.06 kB / 0.9217 GB, free: 32.35 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005489/1.924, allocations: 4.167 MB / 0.9257 GB, free: 28.19 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.71e-07/1.924, allocations: 0 / 0.9257 GB, free: 28.19 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.00809/1.932, allocations: 2.2 MB / 0.9279 GB, free: 26 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.2055/2.138, allocations: 24.31 MB / 0.9516 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01984/2.157, allocations: 14.3 MB / 0.9656 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/2.157, allocations: 6.156 kB / 0.9656 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008407/2.166, allocations: 6.563 MB / 0.972 GB, free: 159.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005091/2.171, allocations: 0.9494 MB / 0.9729 GB, free: 158.7 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1351/2.306, allocations: 103 MB / 1.074 GB, free: 59.17 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005708/2.312, allocations: 5.295 MB / 1.079 GB, free: 53.84 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006108/2.318, allocations: 3.033 MB / 1.082 GB, free: 50.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004148/2.322, allocations: 3.409 MB / 1.085 GB, free: 47.4 MB / 0.5138 GB Notification: Performance of SimCode: time 1.052e-06/2.322, allocations: 0 / 1.085 GB, free: 47.4 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4123/2.734, allocations: 170.2 MB / 1.251 GB, free: 68.73 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.57/28.3, allocations: 7.891 kB / 1.251 GB, free: 68.72 MB / 0.5138 GB (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 --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) 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) Reference file matches