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.001334/0.001334, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 204.7 kB / 18.74 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.4/1.4, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 63.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2612, allocations: 50.55 MB / 408.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01923/0.2804, allocations: 18.03 MB / 426.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.2932, allocations: 6.048 MB / 432.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004034/0.2973, allocations: 139.6 kB / 433 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.3086, allocations: 6.242 MB / 439.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00764/0.3164, allocations: 2.82 MB / 442.1 MB, free: 232 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004966/0.3213, allocations: 2.273 MB / 444.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01368/0.335, allocations: 9.685 MB / 454.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01161/0.3467, allocations: 8.415 MB / 462.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005597/0.3523, allocations: 3.175 MB / 465.6 MB, free: 8.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006454/0.3588, allocations: 4.16 MB / 469.8 MB, free: 4.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001871/0.3607, allocations: 0.7148 MB / 470.5 MB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004387/0.3651, allocations: 1.885 MB / 472.4 MB, free: 1.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004365/0.3695, allocations: 3.768 MB / 476.2 MB, free: 14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006371/0.3759, allocations: 4.403 MB / 480.6 MB, free: 9.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.3934, allocations: 13.87 MB / 494.4 MB, free: 11.65 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3934, allocations: 0 / 494.4 MB, free: 11.65 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3935, allocations: 0 / 494.4 MB, free: 11.65 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000414/0.3939, allocations: 4 kB / 494.5 MB, free: 11.64 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.0285/0.4224, allocations: 9.652 MB / 0.4923 GB, free: 1.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4225, allocations: 8.031 kB / 0.4923 GB, free: 1.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002737/0.4252, allocations: 1.135 MB / 0.4934 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3324/0.7576, allocations: 23.28 MB / 0.5161 GB, free: 9.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01925/0.7769, allocations: 7.571 MB / 0.5235 GB, free: 1.785 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004748/0.7774, allocations: 435.7 kB / 0.5239 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002376/0.7798, allocations: 0.5933 MB / 0.5245 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4018/1.182, allocations: 16.85 MB / 0.541 GB, free: 114.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003625/1.182, allocations: 77.36 kB / 0.5411 GB, free: 114.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001098/1.183, allocations: 266 kB / 0.5413 GB, free: 114.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004679/1.188, allocations: 2.663 MB / 0.5439 GB, free: 114.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02546/1.213, allocations: 14.4 MB / 0.558 GB, free: 109.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06551/1.279, allocations: 63.78 MB / 0.6203 GB, free: 45.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02006/1.299, allocations: 8.643 MB / 0.6287 GB, free: 36.69 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0046/1.304, allocations: 4.924 MB / 0.6335 GB, free: 31.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01971/1.323, allocations: 18.14 MB / 0.6512 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/1.323, allocations: 60.56 kB / 0.6513 GB, free: 13.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.089e-06/1.323, allocations: 4 kB / 0.6513 GB, free: 13.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2576/1.581, allocations: 73.13 MB / 0.7227 GB, free: 4.668 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002209/1.581, allocations: 380.6 kB / 0.7231 GB, free: 4.215 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/1.592, allocations: 6.425 MB / 0.7293 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001037/1.593, allocations: 81.7 kB / 0.7294 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004188/1.597, allocations: 5.02 MB / 0.7343 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002297/1.599, allocations: 1.438 MB / 0.7357 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003588/1.603, allocations: 1.841 MB / 0.7375 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001209/1.603, allocations: 305.1 kB / 0.7378 GB, free: 5.203 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.232/1.835, allocations: 5.659 MB / 0.7433 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/1.845, allocations: 10.62 MB / 0.7537 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01654/1.862, allocations: 17.36 MB / 0.7707 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/1.862, allocations: 48.91 kB / 0.7707 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04047/1.903, allocations: 21.99 MB / 0.7922 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.813e-05/1.903, allocations: 79.94 kB / 0.7923 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001584/1.903, allocations: 172 kB / 0.7924 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01904/1.922, allocations: 6.861 MB / 0.7991 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006618/1.929, allocations: 2.074 MB / 0.8011 GB, free: 143.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03858/1.967, allocations: 36.42 MB / 0.8367 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008168/1.975, allocations: 0.7104 MB / 0.8374 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00157/1.977, allocations: 0.5078 MB / 0.8379 GB, free: 105.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.005679/1.983, allocations: 3.425 MB / 0.8412 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001502/1.984, allocations: 0.6131 MB / 0.8418 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02776/2.012, allocations: 16.1 MB / 0.8576 GB, free: 85.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.038e-05/2.012, allocations: 51.98 kB / 0.8576 GB, free: 85.45 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.14e-05/2.012, allocations: 20 kB / 0.8576 GB, free: 85.43 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.781e-05/2.012, allocations: 19.94 kB / 0.8577 GB, free: 85.41 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04712/2.059, allocations: 31.31 MB / 0.8882 GB, free: 53.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-05/2.059, allocations: 7.938 kB / 0.8882 GB, free: 53.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003063/2.062, allocations: 0.6006 MB / 0.8888 GB, free: 53.21 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01783/2.08, allocations: 6.438 MB / 0.8951 GB, free: 46.76 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001003/2.081, allocations: 71.81 kB / 0.8952 GB, free: 46.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03737/2.119, allocations: 34.63 MB / 0.929 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/2.119, allocations: 4 kB / 0.929 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2628/2.382, allocations: 23.58 MB / 0.952 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/2.383, allocations: 0.6585 MB / 0.9527 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001405/2.385, allocations: 62.11 kB / 0.9527 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00411/2.389, allocations: 426.8 kB / 0.9531 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00104/2.39, allocations: 246 kB / 0.9534 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003509/2.39, allocations: 94.03 kB / 0.9535 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005363/2.396, allocations: 4.106 MB / 0.9575 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/2.396, allocations: 3.938 kB / 0.9575 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008499/2.404, allocations: 2.186 MB / 0.9596 GB, free: 163.3 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.03632/2.44, allocations: 24.37 MB / 0.9834 GB, free: 152 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01949/2.46, allocations: 14.29 MB / 0.9974 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/2.46, allocations: 3.969 kB / 0.9974 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008695/2.469, allocations: 6.573 MB / 1.004 GB, free: 131.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00609/2.475, allocations: 0.9282 MB / 1.005 GB, free: 131 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1422/2.617, allocations: 102.9 MB / 1.105 GB, free: 20.37 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005349/2.622, allocations: 5.259 MB / 1.11 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005867/2.628, allocations: 3.032 MB / 1.113 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003987/2.632, allocations: 3.397 MB / 1.117 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/2.632, allocations: 0 / 1.117 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4189/3.051, allocations: 166.7 MB / 1.279 GB, free: 64.34 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.37/29.42, allocations: 0 / 1.279 GB, free: 64.34 MB / 0.5451 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 & /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.1.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