Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001035/0.001035, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2728, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01993/0.2928, allocations: 18.04 MB / 426.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.3074, allocations: 6.041 MB / 432.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004146/0.3116, allocations: 139.6 kB / 433 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01168/0.3233, allocations: 6.242 MB / 439.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007685/0.3311, allocations: 2.887 MB / 442.1 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005191/0.3363, allocations: 2.288 MB / 444.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01522/0.3515, allocations: 9.684 MB / 454.1 MB, free: 4.027 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01241/0.364, allocations: 8.415 MB / 462.5 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006385/0.3704, allocations: 3.214 MB / 465.7 MB, free: 8.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00664/0.3771, allocations: 4.156 MB / 469.9 MB, free: 4.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002465/0.3796, allocations: 0.7148 MB / 470.6 MB, free: 3.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004747/0.3843, allocations: 1.9 MB / 472.5 MB, free: 1.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005415/0.3898, allocations: 3.804 MB / 476.3 MB, free: 13.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008318/0.3981, allocations: 4.407 MB / 480.7 MB, free: 9.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01965/0.4178, allocations: 13.87 MB / 494.6 MB, free: 11.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4179, allocations: 0 / 494.6 MB, free: 11.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4179, allocations: 0 / 494.6 MB, free: 11.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000528/0.4184, allocations: 4 kB / 494.6 MB, free: 11.34 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.03116/0.4496, allocations: 9.652 MB / 0.4924 GB, free: 1.586 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4497, allocations: 8.031 kB / 0.4924 GB, free: 1.578 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004552/0.4542, allocations: 1.139 MB / 0.4935 GB, free: 440 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3255/0.7798, allocations: 23.28 MB / 0.5162 GB, free: 9.113 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02118/0.801, allocations: 7.567 MB / 0.5236 GB, free: 1.473 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004904/0.8015, allocations: 432.8 kB / 0.524 GB, free: 1.051 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002936/0.8045, allocations: 0.5895 MB / 0.5246 GB, free: 472 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5134/1.318, allocations: 16.85 MB / 0.5411 GB, free: 114.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007281/1.319, allocations: 82.72 kB / 0.5412 GB, free: 114.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002897/1.322, allocations: 268.7 kB / 0.5414 GB, free: 114.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005991/1.328, allocations: 2.657 MB / 0.544 GB, free: 114.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03139/1.359, allocations: 14.39 MB / 0.5581 GB, free: 108.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08387/1.443, allocations: 63.79 MB / 0.6204 GB, free: 45.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02109/1.464, allocations: 8.634 MB / 0.6288 GB, free: 36.23 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005065/1.469, allocations: 4.921 MB / 0.6336 GB, free: 31.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02739/1.497, allocations: 18.15 MB / 0.6513 GB, free: 13.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/1.497, allocations: 56.56 kB / 0.6514 GB, free: 13.01 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 7.664e-06/1.497, allocations: 0 / 0.6514 GB, free: 13.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2597/1.756, allocations: 73.15 MB / 0.7228 GB, free: 4.191 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001976/1.757, allocations: 380.6 kB / 0.7232 GB, free: 3.738 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01013/1.767, allocations: 6.423 MB / 0.7294 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.768, allocations: 81.7 kB / 0.7295 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003662/1.772, allocations: 5.021 MB / 0.7344 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002166/1.774, allocations: 1.434 MB / 0.7358 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003288/1.777, allocations: 1.841 MB / 0.7376 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.518e-05/1.777, allocations: 305.1 kB / 0.7379 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2531/2.03, allocations: 5.657 MB / 0.7434 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01106/2.041, allocations: 10.62 MB / 0.7538 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01756/2.059, allocations: 17.36 MB / 0.7708 GB, free: 163 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001417/2.059, allocations: 53.88 kB / 0.7708 GB, free: 163 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04039/2.1, allocations: 21.99 MB / 0.7923 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.977e-05/2.1, allocations: 79.94 kB / 0.7924 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001786/2.1, allocations: 172 kB / 0.7925 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01929/2.119, allocations: 6.858 MB / 0.7992 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007016/2.126, allocations: 2.078 MB / 0.8013 GB, free: 142.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04029/2.167, allocations: 36.42 MB / 0.8368 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009994/2.177, allocations: 0.7109 MB / 0.8375 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002109/2.179, allocations: 0.5078 MB / 0.838 GB, free: 104.7 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.007354/2.186, allocations: 3.42 MB / 0.8413 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001662/2.188, allocations: 0.6131 MB / 0.8419 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02961/2.217, allocations: 16.11 MB / 0.8577 GB, free: 84.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.97e-05/2.218, allocations: 55.98 kB / 0.8577 GB, free: 84.84 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.305e-05/2.218, allocations: 16 kB / 0.8577 GB, free: 84.82 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-05/2.218, allocations: 15.94 kB / 0.8578 GB, free: 84.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05108/2.269, allocations: 31.31 MB / 0.8883 GB, free: 53.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.625e-05/2.269, allocations: 3.938 kB / 0.8883 GB, free: 53.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003239/2.272, allocations: 0.6084 MB / 0.8889 GB, free: 52.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01789/2.29, allocations: 6.434 MB / 0.8952 GB, free: 46.15 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009208/2.291, allocations: 60 kB / 0.8953 GB, free: 46.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03817/2.329, allocations: 34.64 MB / 0.9291 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/2.329, allocations: 4 kB / 0.9291 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2858/2.615, allocations: 23.58 MB / 0.9521 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002495/2.618, allocations: 0.6585 MB / 0.9528 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002028/2.62, allocations: 60.66 kB / 0.9528 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005114/2.625, allocations: 433.7 kB / 0.9532 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/2.626, allocations: 249 kB / 0.9535 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003608/2.626, allocations: 93.28 kB / 0.9536 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006717/2.633, allocations: 4.106 MB / 0.9576 GB, free: 163.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/2.633, allocations: 3.938 kB / 0.9576 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009706/2.643, allocations: 2.189 MB / 0.9597 GB, free: 163 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.037/2.68, allocations: 24.36 MB / 0.9835 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01916/2.699, allocations: 14.3 MB / 0.9975 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/2.699, allocations: 0 / 0.9975 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009116/2.708, allocations: 6.57 MB / 1.004 GB, free: 131.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00628/2.715, allocations: 0.9392 MB / 1.005 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1495/2.864, allocations: 102.9 MB / 1.105 GB, free: 19.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006099/2.87, allocations: 5.271 MB / 1.11 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00647/2.877, allocations: 3.032 MB / 1.113 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005091/2.882, allocations: 3.381 MB / 1.117 GB, free: 8.09 MB / 0.5294 GB Notification: Performance of SimCode: time 1.232e-06/2.882, allocations: 0 / 1.117 GB, free: 8.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4673/3.349, allocations: 166.7 MB / 1.279 GB, free: 63.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.48/29.83, allocations: 7.922 kB / 1.279 GB, free: 63.88 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches