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.001296/0.001296, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 60.12 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.09535, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2146/0.31, allocations: 18.03 MB / 375.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01583/0.3259, allocations: 6.06 MB / 381.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.3304, allocations: 145.8 kB / 381.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01124/0.3417, allocations: 6.235 MB / 388 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007993/0.3497, allocations: 2.81 MB / 390.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004983/0.3547, allocations: 2.275 MB / 393.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01376/0.3685, allocations: 9.696 MB / 402.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009505/0.3781, allocations: 8.413 MB / 411.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006741/0.3848, allocations: 3.171 MB / 414.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007598/0.3925, allocations: 4.152 MB / 418.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002639/0.3952, allocations: 0.7148 MB / 419.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005256/0.4004, allocations: 1.896 MB / 421.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004267/0.4047, allocations: 3.761 MB / 424.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006297/0.411, allocations: 4.403 MB / 429.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.4274, allocations: 13.53 MB / 442.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4275, allocations: 0 / 442.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4275, allocations: 0 / 442.9 MB, free: 5.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003966/0.4279, allocations: 7.938 kB / 442.9 MB, free: 5.945 MB / 350.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.02952/0.4574, allocations: 9.422 MB / 452.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.4575, allocations: 8.031 kB / 452.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003607/0.4611, allocations: 1.139 MB / 453.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3313/0.7924, allocations: 23.23 MB / 476.7 MB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01933/0.8117, allocations: 7.412 MB / 484.1 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004418/0.8122, allocations: 431.9 kB / 484.5 MB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002538/0.8148, allocations: 0.5855 MB / 485.1 MB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03594/0.8507, allocations: 16.86 MB / 0.4902 GB, free: 9.703 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004349/0.8512, allocations: 75.28 kB / 0.4903 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00207/0.8533, allocations: 275.8 kB / 0.4905 GB, free: 9.359 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004647/0.8579, allocations: 2.65 MB / 0.4931 GB, free: 6.703 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03222/0.8902, allocations: 14.4 MB / 0.5072 GB, free: 8.285 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5253/1.415, allocations: 63.96 MB / 0.5696 GB, free: 97.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/1.438, allocations: 8.633 MB / 0.5781 GB, free: 94.65 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005676/1.444, allocations: 4.917 MB / 0.5829 GB, free: 92.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02409/1.468, allocations: 18.11 MB / 0.6005 GB, free: 78.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/1.468, allocations: 74.48 kB / 0.6006 GB, free: 78.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.152e-06/1.468, allocations: 0 / 0.6006 GB, free: 78.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2405/1.709, allocations: 72.76 MB / 0.6717 GB, free: 6.285 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/1.709, allocations: 376.6 kB / 0.672 GB, free: 5.836 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007865/1.717, allocations: 6.418 MB / 0.6783 GB, free: 15.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009742/1.718, allocations: 85.69 kB / 0.6784 GB, free: 15.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003206/1.721, allocations: 4.838 MB / 0.6831 GB, free: 10.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001986/1.723, allocations: 1.363 MB / 0.6844 GB, free: 9.133 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003034/1.726, allocations: 1.835 MB / 0.6862 GB, free: 7.285 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/1.726, allocations: 301.1 kB / 0.6865 GB, free: 6.988 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007797/1.734, allocations: 5.667 MB / 0.692 GB, free: 1.312 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01189/1.746, allocations: 10.61 MB / 0.7024 GB, free: 4.277 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.199/1.945, allocations: 17.36 MB / 0.7194 GB, free: 144.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/1.945, allocations: 53.12 kB / 0.7194 GB, free: 144.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03906/1.984, allocations: 21.96 MB / 0.7409 GB, free: 137.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.329e-05/1.984, allocations: 82.5 kB / 0.7409 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/1.984, allocations: 174.3 kB / 0.7411 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01887/2.003, allocations: 6.879 MB / 0.7478 GB, free: 136.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00646/2.01, allocations: 2.067 MB / 0.7498 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03813/2.048, allocations: 36.42 MB / 0.7854 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007944/2.056, allocations: 0.7141 MB / 0.7861 GB, free: 99.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001324/2.057, allocations: 0.5078 MB / 0.7866 GB, free: 98.95 MB / 478.1 MB 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.004778/2.062, allocations: 3.428 MB / 0.7899 GB, free: 95.62 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001442/2.063, allocations: 0.5831 MB / 0.7905 GB, free: 95.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02737/2.091, allocations: 16.1 MB / 0.8062 GB, free: 79.13 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.496e-05/2.091, allocations: 47.98 kB / 0.8063 GB, free: 79.08 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-05/2.091, allocations: 16.75 kB / 0.8063 GB, free: 79.07 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.106e-05/2.091, allocations: 15.94 kB / 0.8063 GB, free: 79.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04493/2.136, allocations: 31.42 MB / 0.837 GB, free: 47.23 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.711e-05/2.136, allocations: 5.75 kB / 0.837 GB, free: 47.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00312/2.139, allocations: 0.6144 MB / 0.8376 GB, free: 46.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01771/2.157, allocations: 6.456 MB / 0.8439 GB, free: 40.14 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006573/2.158, allocations: 63.98 kB / 0.844 GB, free: 40.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2034/2.361, allocations: 34.62 MB / 0.8778 GB, free: 146.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/2.361, allocations: 3.688 kB / 0.8778 GB, free: 146.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04088/2.402, allocations: 23.55 MB / 0.9008 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/2.404, allocations: 0.6148 MB / 0.9014 GB, free: 141.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001274/2.405, allocations: 71.44 kB / 0.9014 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004021/2.409, allocations: 428.4 kB / 0.9018 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/2.41, allocations: 251 kB / 0.9021 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003242/2.41, allocations: 91.25 kB / 0.9022 GB, free: 141.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005476/2.416, allocations: 4.107 MB / 0.9062 GB, free: 140.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.2e-07/2.416, allocations: 0 / 0.9062 GB, free: 140.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007836/2.424, allocations: 2.182 MB / 0.9083 GB, free: 139.9 MB / 478.1 MB 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.0384/2.462, allocations: 24.33 MB / 0.9321 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02775/2.49, allocations: 19.47 MB / 0.9511 GB, free: 105.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/2.49, allocations: 0.5469 kB / 0.9511 GB, free: 105.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00876/2.499, allocations: 6.563 MB / 0.9575 GB, free: 99.21 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/2.504, allocations: 0.9479 MB / 0.9584 GB, free: 98.33 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3401/2.844, allocations: 120.8 MB / 1.076 GB, free: 155.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006433/2.85, allocations: 5.265 MB / 1.082 GB, free: 154.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007369/2.858, allocations: 3.031 MB / 1.085 GB, free: 154.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005067/2.863, allocations: 3.391 MB / 1.088 GB, free: 152.5 MB / 494.1 MB Notification: Performance of SimCode: time 2.725e-06/2.863, allocations: 0 / 1.088 GB, free: 152.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.846/5.709, allocations: 171.7 MB / 1.255 GB, free: 153.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/23.11, allocations: 15.56 kB / 1.256 GB, free: 153.2 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches