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.0008271/0.0008274, allocations: 93.53 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009462/0.0009463, allocations: 205.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002012/0.0002011, allocations: 4 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07876/0.07898, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.205/0.284, allocations: 75.07 MB / 434.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03198/0.316, allocations: 15.65 MB / 450.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01178/0.3278, allocations: 355 kB / 450.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.3297, allocations: 0.6684 MB / 451.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005707/0.3354, allocations: 2.677 MB / 453.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.3378, allocations: 1.348 MB / 455.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01315/0.351, allocations: 13.82 MB / 468.9 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01533/0.3664, allocations: 11.88 MB / 480.8 MB, free: 0.918 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/0.37, allocations: 2.206 MB / 483 MB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00491/0.375, allocations: 3.668 MB / 486.7 MB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.376, allocations: 248 kB / 486.9 MB, free: 10.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.3791, allocations: 1.513 MB / 488.5 MB, free: 9.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002996/0.3821, allocations: 3.206 MB / 491.7 MB, free: 6.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002892/0.385, allocations: 3.671 MB / 495.3 MB, free: 2.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009851/0.3949, allocations: 12.9 MB / 0.4963 GB, free: 5.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3949, allocations: 0 / 0.4963 GB, free: 5.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3949, allocations: 0 / 0.4963 GB, free: 5.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002173/0.3952, allocations: 0 / 0.4963 GB, free: 5.41 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.01823/0.4134, allocations: 7.761 MB / 0.5039 GB, free: 13.56 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.4134, allocations: 8.031 kB / 0.5039 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001681/0.4151, allocations: 1.143 MB / 0.505 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3379/0.753, allocations: 23.85 MB / 0.5283 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2847/1.038, allocations: 7.397 MB / 0.5355 GB, free: 142.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/1.038, allocations: 435.6 kB / 0.536 GB, free: 142.4 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001549/1.04, allocations: 0.5802 MB / 0.5365 GB, free: 142.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02541/1.065, allocations: 16.92 MB / 0.553 GB, free: 135.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001634/1.065, allocations: 82.59 kB / 0.5531 GB, free: 135.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005596/1.066, allocations: 267.3 kB / 0.5534 GB, free: 135.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003496/1.069, allocations: 2.66 MB / 0.556 GB, free: 134.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02152/1.091, allocations: 14.45 MB / 0.5701 GB, free: 122.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05055/1.142, allocations: 63.95 MB / 0.6325 GB, free: 57.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01859/1.16, allocations: 8.693 MB / 0.641 GB, free: 48.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003916/1.164, allocations: 4.915 MB / 0.6458 GB, free: 44.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/1.182, allocations: 18.1 MB / 0.6635 GB, free: 25.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/1.182, allocations: 64.5 kB / 0.6636 GB, free: 25.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 4.217e-06/1.182, allocations: 0 / 0.6636 GB, free: 25.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.3759/1.558, allocations: 73.83 MB / 0.7357 GB, free: 140 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/1.558, allocations: 375.5 kB / 0.736 GB, free: 139.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006409/1.564, allocations: 6.416 MB / 0.7423 GB, free: 136.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000603/1.565, allocations: 83.77 kB / 0.7424 GB, free: 136.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/1.567, allocations: 4.837 MB / 0.7471 GB, free: 132.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009448/1.568, allocations: 1.365 MB / 0.7484 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008307/1.568, allocations: 0.7468 MB / 0.7492 GB, free: 130.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.277e-05/1.569, allocations: 305.1 kB / 0.7494 GB, free: 130.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005404/1.574, allocations: 5.658 MB / 0.755 GB, free: 125 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006735/1.581, allocations: 10.61 MB / 0.7653 GB, free: 112 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/1.594, allocations: 17.37 MB / 0.7823 GB, free: 92.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-05/1.594, allocations: 48 kB / 0.7823 GB, free: 92.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03306/1.627, allocations: 21.98 MB / 0.8038 GB, free: 70.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.113e-05/1.627, allocations: 79.94 kB / 0.8039 GB, free: 70.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001388/1.627, allocations: 176 kB / 0.8041 GB, free: 69.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01846/1.646, allocations: 6.893 MB / 0.8108 GB, free: 63.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005964/1.652, allocations: 2.074 MB / 0.8128 GB, free: 60.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03544/1.687, allocations: 34.02 MB / 0.846 GB, free: 26.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007113/1.694, allocations: 0.7225 MB / 0.8467 GB, free: 25.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006873/1.695, allocations: 0.5087 MB / 0.8472 GB, free: 25.3 MB / 462.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.004008/1.699, allocations: 3.424 MB / 0.8506 GB, free: 21.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008686/1.7, allocations: 0.5862 MB / 0.8511 GB, free: 21.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02723/1.727, allocations: 16.12 MB / 0.8669 GB, free: 5.078 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.764e-05/1.727, allocations: 52.92 kB / 0.8669 GB, free: 5.027 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/1.727, allocations: 17.81 kB / 0.867 GB, free: 5.012 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/1.727, allocations: 15.94 kB / 0.867 GB, free: 4.996 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1929/1.92, allocations: 31.43 MB / 0.8977 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/1.92, allocations: 7.5 kB / 0.8977 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002693/1.923, allocations: 0.6069 MB / 0.8983 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01753/1.94, allocations: 6.571 MB / 0.9047 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000352/1.941, allocations: 68.3 kB / 0.9048 GB, free: 123 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03319/1.974, allocations: 32.31 MB / 0.9363 GB, free: 98.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.974, allocations: 4 kB / 0.9363 GB, free: 98.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03223/2.006, allocations: 23.56 MB / 0.9593 GB, free: 75.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/2.008, allocations: 0.6347 MB / 0.9599 GB, free: 74.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007567/2.008, allocations: 61.48 kB / 0.96 GB, free: 74.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003686/2.012, allocations: 432.6 kB / 0.9604 GB, free: 74.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009273/2.013, allocations: 250.5 kB / 0.9607 GB, free: 73.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003011/2.013, allocations: 92.09 kB / 0.9607 GB, free: 73.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004354/2.018, allocations: 4.111 MB / 0.9648 GB, free: 69.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/2.018, allocations: 0 / 0.9648 GB, free: 69.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006171/2.024, allocations: 2.185 MB / 0.9669 GB, free: 67.6 MB / 462.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.03231/2.056, allocations: 24.34 MB / 0.9907 GB, free: 43.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0159/2.072, allocations: 14.25 MB / 1.005 GB, free: 29.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.463e-06/2.072, allocations: 3.938 kB / 1.005 GB, free: 29.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007701/2.08, allocations: 6.562 MB / 1.011 GB, free: 22.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006425/2.086, allocations: 0.8847 MB / 1.012 GB, free: 21.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3071/2.393, allocations: 124.1 MB / 1.133 GB, free: 70.31 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004275/2.398, allocations: 5.266 MB / 1.138 GB, free: 65.04 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006314/2.404, allocations: 3.026 MB / 1.141 GB, free: 62.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003552/2.408, allocations: 3.389 MB / 1.144 GB, free: 58.66 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/2.408, allocations: 8 kB / 1.144 GB, free: 58.65 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.512/3.919, allocations: 164.3 MB / 1.305 GB, free: 97.36 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/3.92, allocations: 242 kB / 1.305 GB, free: 97.11 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.741/8.661, allocations: 0 / 1.305 GB, free: 97.11 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