Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_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.001411/0.001411, allocations: 106.7 kB / 16.51 MB, free: 6.715 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.001085/0.001085, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008811/0.0008811, allocations: 46.81 kB / 300.1 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08531, allocations: 49.44 MB / 349.5 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2267/0.312, allocations: 81.07 MB / 430.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03442/0.3465, allocations: 16.52 MB / 447.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01414/0.3606, allocations: 375 kB / 447.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01087/0.3716, allocations: 6.297 MB / 453.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006938/0.3786, allocations: 2.686 MB / 456.4 MB, free: 9.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004479/0.3831, allocations: 2.194 MB / 458.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01494/0.398, allocations: 13.64 MB / 472.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009749/0.4078, allocations: 8.279 MB / 480.6 MB, free: 1.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004509/0.4123, allocations: 2.835 MB / 483.4 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005559/0.4179, allocations: 4.433 MB / 487.8 MB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001492/0.4194, allocations: 0.4922 MB / 488.3 MB, free: 9.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003668/0.4231, allocations: 1.783 MB / 490.1 MB, free: 8.039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004608/0.4277, allocations: 3.604 MB / 493.7 MB, free: 4.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00751/0.4353, allocations: 4.118 MB / 497.8 MB, free: 292 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01319/0.4485, allocations: 13.4 MB / 0.4992 GB, free: 2.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4485, allocations: 0 / 0.4992 GB, free: 2.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4485, allocations: 0 / 0.4992 GB, free: 2.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004307/0.4489, allocations: 0 / 0.4992 GB, free: 2.84 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02614/0.4751, allocations: 9.43 MB / 0.5084 GB, free: 9.316 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.4752, allocations: 8.031 kB / 0.5085 GB, free: 9.309 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002804/0.478, allocations: 1.131 MB / 0.5096 GB, free: 8.168 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.281/0.759, allocations: 23.23 MB / 0.5322 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3467/1.106, allocations: 7.828 MB / 0.5399 GB, free: 69.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003892/1.106, allocations: 443 kB / 0.5403 GB, free: 69.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001927/1.108, allocations: 0.5799 MB / 0.5409 GB, free: 69.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02683/1.135, allocations: 16.86 MB / 0.5573 GB, free: 66.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001836/1.135, allocations: 85.55 kB / 0.5574 GB, free: 66.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006143/1.136, allocations: 265.9 kB / 0.5577 GB, free: 66.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003582/1.139, allocations: 2.657 MB / 0.5603 GB, free: 66.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02304/1.162, allocations: 14.4 MB / 0.5743 GB, free: 58.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06045/1.223, allocations: 63.95 MB / 0.6368 GB, free: 9.715 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02071/1.244, allocations: 8.644 MB / 0.6452 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005463/1.249, allocations: 4.913 MB / 0.65 GB, free: 12.02 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02505/1.274, allocations: 18.11 MB / 0.6677 GB, free: 9.855 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.556e-05/1.274, allocations: 68.5 kB / 0.6678 GB, free: 9.785 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 4.799e-06/1.274, allocations: 0 / 0.6678 GB, free: 9.785 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.3764/1.651, allocations: 72.76 MB / 0.7388 GB, free: 228.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/1.651, allocations: 375.5 kB / 0.7392 GB, free: 228.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008141/1.659, allocations: 6.417 MB / 0.7455 GB, free: 226.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000796/1.66, allocations: 85.55 kB / 0.7455 GB, free: 226.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002197/1.662, allocations: 4.842 MB / 0.7503 GB, free: 222.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001396/1.663, allocations: 1.369 MB / 0.7516 GB, free: 221.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00235/1.666, allocations: 1.833 MB / 0.7534 GB, free: 220.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.478e-05/1.666, allocations: 305.1 kB / 0.7537 GB, free: 220.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005981/1.672, allocations: 5.662 MB / 0.7592 GB, free: 218.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007126/1.679, allocations: 10.62 MB / 0.7696 GB, free: 209.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01511/1.694, allocations: 17.37 MB / 0.7865 GB, free: 194.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001344/1.694, allocations: 52 kB / 0.7866 GB, free: 194 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03542/1.73, allocations: 21.95 MB / 0.808 GB, free: 172 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001438/1.73, allocations: 78.03 kB / 0.8081 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001938/1.73, allocations: 175.9 kB / 0.8083 GB, free: 171.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01785/1.748, allocations: 6.853 MB / 0.815 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006433/1.754, allocations: 2.083 MB / 0.817 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0379/1.792, allocations: 33.95 MB / 0.8502 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00812/1.8, allocations: 0.7269 MB / 0.8509 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/1.802, allocations: 0.5078 MB / 0.8514 GB, free: 127.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.005747/1.808, allocations: 3.414 MB / 0.8547 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001648/1.81, allocations: 0.5823 MB / 0.8553 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02735/1.837, allocations: 16.1 MB / 0.871 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.872e-05/1.837, allocations: 51.98 kB / 0.871 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.283e-05/1.837, allocations: 20 kB / 0.8711 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.125e-05/1.837, allocations: 19.94 kB / 0.8711 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05095/1.888, allocations: 31.41 MB / 0.9017 GB, free: 75.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.19e-05/1.888, allocations: 11.5 kB / 0.9018 GB, free: 75.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002935/1.891, allocations: 0.6111 MB / 0.9024 GB, free: 74.53 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02904/1.92, allocations: 6.536 MB / 0.9087 GB, free: 67.97 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001099/1.921, allocations: 60 kB / 0.9088 GB, free: 67.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05733/1.979, allocations: 32.24 MB / 0.9403 GB, free: 35.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.979, allocations: 7.938 kB / 0.9403 GB, free: 35.26 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2347/2.213, allocations: 23.54 MB / 0.9633 GB, free: 212.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/2.215, allocations: 0.6241 MB / 0.9639 GB, free: 212 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00213/2.218, allocations: 64.28 kB / 0.964 GB, free: 212 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00499/2.223, allocations: 430.3 kB / 0.9644 GB, free: 212 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/2.224, allocations: 246.3 kB / 0.9646 GB, free: 212 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003697/2.224, allocations: 98.44 kB / 0.9647 GB, free: 212 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006592/2.231, allocations: 4.111 MB / 0.9687 GB, free: 211.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/2.231, allocations: 0.7812 kB / 0.9687 GB, free: 211.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008772/2.24, allocations: 2.197 MB / 0.9709 GB, free: 211.2 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.03541/2.275, allocations: 24.31 MB / 0.9946 GB, free: 202.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01765/2.293, allocations: 14.25 MB / 1.009 GB, free: 195.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/2.293, allocations: 0 / 1.009 GB, free: 195.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008124/2.301, allocations: 6.565 MB / 1.015 GB, free: 189.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005115/2.306, allocations: 0.8808 MB / 1.016 GB, free: 189 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1687/2.475, allocations: 124.1 MB / 1.137 GB, free: 55.83 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008629/2.483, allocations: 5.263 MB / 1.142 GB, free: 50.53 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007384/2.491, allocations: 3.035 MB / 1.145 GB, free: 47.49 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005054/2.496, allocations: 3.393 MB / 1.148 GB, free: 44.09 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/2.496, allocations: 0 / 1.148 GB, free: 44.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4447/2.941, allocations: 167.2 MB / 1.312 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/2.941, allocations: 258.3 kB / 1.312 GB, free: 118 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.247/8.188, allocations: 0 / 1.312 GB, free: 118 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches