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.001528/0.001528, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001748/0.001748, allocations: 191 kB / 18.67 MB, free: 4.414 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.412/1.412, 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.001404/0.001404, allocations: 47.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2221/0.3257, allocations: 18.58 MB / 393.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01414/0.3399, allocations: 6.142 MB / 399.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004726/0.3447, allocations: 143.9 kB / 399.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01169/0.3565, allocations: 6.28 MB / 405.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008224/0.3647, allocations: 2.853 MB / 408.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005225/0.37, allocations: 2.28 MB / 410.9 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01359/0.3836, allocations: 8.845 MB / 419.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01002/0.3937, allocations: 8.427 MB / 428.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005891/0.3996, allocations: 3.225 MB / 431.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006517/0.4062, allocations: 4.199 MB / 435.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001777/0.408, allocations: 0.7148 MB / 436.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004112/0.4121, allocations: 1.908 MB / 438.2 MB, free: 80 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003917/0.416, allocations: 3.839 MB / 442.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006377/0.4224, allocations: 4.442 MB / 446.5 MB, free: 7.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/0.4378, allocations: 13.93 MB / 460.4 MB, free: 9.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4378, allocations: 4 kB / 460.5 MB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4378, allocations: 0 / 460.5 MB, free: 9.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004122/0.4382, allocations: 0 / 460.5 MB, free: 9.789 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.02829/0.4665, allocations: 9.492 MB / 469.9 MB, free: 212 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.4666, allocations: 8.031 kB / 470 MB, free: 204 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002786/0.4694, allocations: 1.131 MB / 471.1 MB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3423/0.8117, allocations: 23.24 MB / 494.3 MB, free: 7.781 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02233/0.8341, allocations: 8.615 MB / 0.4912 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004904/0.8347, allocations: 431.8 kB / 0.4916 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003094/0.8378, allocations: 0.5854 MB / 0.4921 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03824/0.876, allocations: 16.87 MB / 0.5086 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005899/0.8767, allocations: 83.27 kB / 0.5087 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002959/0.8797, allocations: 267.8 kB / 0.5089 GB, free: 11.92 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005135/0.8848, allocations: 2.654 MB / 0.5115 GB, free: 9.258 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0316/0.9165, allocations: 14.4 MB / 0.5256 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4672/1.384, allocations: 63.83 MB / 0.5879 GB, free: 105.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02234/1.406, allocations: 8.631 MB / 0.5964 GB, free: 102.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005451/1.412, allocations: 4.915 MB / 0.6012 GB, free: 100.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02837/1.44, allocations: 18.14 MB / 0.6189 GB, free: 90.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/1.44, allocations: 59.25 kB / 0.6189 GB, free: 90.38 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.129e-06/1.44, allocations: 3.781 kB / 0.6189 GB, free: 90.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2395/1.68, allocations: 73 MB / 0.6902 GB, free: 18.07 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/1.68, allocations: 372.6 kB / 0.6906 GB, free: 17.62 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007728/1.687, allocations: 6.497 MB / 0.6969 GB, free: 11.13 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009564/1.688, allocations: 85.3 kB / 0.697 GB, free: 11.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002274/1.691, allocations: 4.859 MB / 0.7017 GB, free: 6.184 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/1.692, allocations: 1.368 MB / 0.7031 GB, free: 4.828 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002645/1.695, allocations: 1.828 MB / 0.7049 GB, free: 2.984 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.994e-05/1.695, allocations: 305.1 kB / 0.7052 GB, free: 2.684 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007492/1.703, allocations: 5.661 MB / 0.7107 GB, free: 13.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01271/1.715, allocations: 10.61 MB / 0.7211 GB, free: 40 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02401/1.739, allocations: 17.37 MB / 0.738 GB, free: 12.27 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002085/1.74, allocations: 52 kB / 0.7381 GB, free: 12.22 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2799/2.02, allocations: 21.96 MB / 0.7595 GB, free: 172.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/2.02, allocations: 78.06 kB / 0.7596 GB, free: 172.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002769/2.02, allocations: 171 kB / 0.7597 GB, free: 172.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0221/2.042, allocations: 6.857 MB / 0.7664 GB, free: 172.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007954/2.05, allocations: 2.075 MB / 0.7685 GB, free: 172.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04276/2.093, allocations: 36.39 MB / 0.804 GB, free: 152.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008789/2.102, allocations: 0.7138 MB / 0.8047 GB, free: 152.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001603/2.103, allocations: 0.5141 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.005994/2.109, allocations: 3.443 MB / 0.8086 GB, free: 148.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/2.111, allocations: 0.5896 MB / 0.8091 GB, free: 148.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02767/2.139, allocations: 16.11 MB / 0.8249 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-05/2.139, allocations: 47.61 kB / 0.8249 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.634e-05/2.139, allocations: 20.81 kB / 0.8249 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.129e-05/2.139, allocations: 23.92 kB / 0.825 GB, free: 131.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0503/2.189, allocations: 31.31 MB / 0.8555 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-05/2.189, allocations: 4 kB / 0.8555 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003395/2.193, allocations: 0.6086 MB / 0.8561 GB, free: 99.75 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01861/2.211, allocations: 6.435 MB / 0.8624 GB, free: 93.29 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009159/2.212, allocations: 65.06 kB / 0.8625 GB, free: 93.23 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03782/2.25, allocations: 34.63 MB / 0.8963 GB, free: 58.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/2.25, allocations: 0 / 0.8963 GB, free: 58.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03594/2.286, allocations: 23.56 MB / 0.9193 GB, free: 34.79 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005101/2.291, allocations: 1.63 MB / 0.9209 GB, free: 33.14 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001627/2.293, allocations: 60 kB / 0.921 GB, free: 33.08 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004776/2.298, allocations: 427.3 kB / 0.9214 GB, free: 32.66 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001133/2.299, allocations: 250.7 kB / 0.9216 GB, free: 32.41 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004051/2.299, allocations: 88 kB / 0.9217 GB, free: 32.33 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00553/2.305, allocations: 4.167 MB / 0.9258 GB, free: 28.17 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.11e-07/2.305, allocations: 0 / 0.9258 GB, free: 28.17 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008901/2.314, allocations: 2.2 MB / 0.9279 GB, free: 25.98 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.2403/2.554, allocations: 24.31 MB / 0.9516 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02129/2.575, allocations: 14.29 MB / 0.9656 GB, free: 162 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/2.575, allocations: 1.656 kB / 0.9656 GB, free: 162 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01012/2.585, allocations: 6.556 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.006455/2.592, allocations: 0.9519 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.1531/2.745, allocations: 103 MB / 1.074 GB, free: 59.18 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005919/2.751, allocations: 5.293 MB / 1.079 GB, free: 53.85 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006438/2.758, allocations: 3.037 MB / 1.082 GB, free: 50.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004626/2.762, allocations: 3.405 MB / 1.085 GB, free: 47.4 MB / 0.5138 GB Notification: Performance of SimCode: time 1.223e-06/2.762, allocations: 0 / 1.085 GB, free: 47.4 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4136/3.176, allocations: 170.2 MB / 1.251 GB, free: 68.46 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.35/30.52, allocations: 7.969 kB / 1.251 GB, free: 68.46 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