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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001346/0.001346, allocations: 122.7 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 63.89 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1092, allocations: 53.32 MB / 426.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2278/0.337, allocations: 18.1 MB / 444.8 MB, free: 1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.3502, allocations: 6.074 MB / 450.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0042/0.3544, allocations: 140.7 kB / 451 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01273/0.3671, allocations: 6.324 MB / 457.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008402/0.3755, allocations: 2.89 MB / 460.2 MB, free: 8.688 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005494/0.381, allocations: 2.278 MB / 462.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01596/0.397, allocations: 9.685 MB / 472.2 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0121/0.4091, allocations: 6.901 MB / 479.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007428/0.4165, allocations: 3.218 MB / 482.3 MB, free: 9.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007967/0.4245, allocations: 4.468 MB / 486.7 MB, free: 4.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002462/0.427, allocations: 0.7148 MB / 487.5 MB, free: 4.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005015/0.432, allocations: 1.939 MB / 489.4 MB, free: 2.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005343/0.4373, allocations: 3.912 MB / 493.3 MB, free: 14.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007915/0.4452, allocations: 4.407 MB / 497.7 MB, free: 9.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0201/0.4653, allocations: 13.87 MB / 0.4996 GB, free: 12.01 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4653, allocations: 4 kB / 0.4996 GB, free: 12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4653, allocations: 0 / 0.4996 GB, free: 12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004461/0.4658, allocations: 0 / 0.4996 GB, free: 12 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.02919/0.495, allocations: 9.66 MB / 0.509 GB, free: 2.242 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.495, allocations: 8.031 kB / 0.509 GB, free: 2.234 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00311/0.4981, allocations: 1.135 MB / 0.5101 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.275/0.7731, allocations: 23.28 MB / 0.5329 GB, free: 9.781 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/0.7923, allocations: 7.563 MB / 0.5403 GB, free: 2.145 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004331/0.7927, allocations: 431.9 kB / 0.5407 GB, free: 1.723 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002995/0.7957, allocations: 0.5934 MB / 0.5413 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0356/0.8313, allocations: 16.86 MB / 0.5577 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003504/0.8317, allocations: 88.91 kB / 0.5578 GB, free: 15.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001307/0.833, allocations: 263.8 kB / 0.5581 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00479/0.8378, allocations: 2.658 MB / 0.5607 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03144/0.8692, allocations: 14.39 MB / 0.5747 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5186/1.388, allocations: 63.78 MB / 0.637 GB, free: 123.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02206/1.41, allocations: 8.348 MB / 0.6451 GB, free: 122.4 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005331/1.415, allocations: 4.558 MB / 0.6496 GB, free: 121.6 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02928/1.444, allocations: 18.14 MB / 0.6673 GB, free: 113.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/1.445, allocations: 67.25 kB / 0.6674 GB, free: 113.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=281): time 5.741e-06/1.445, allocations: 0 / 0.6674 GB, free: 113.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=374): time 0.2276/1.672, allocations: 73.07 MB / 0.7387 GB, free: 51.16 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/1.672, allocations: 380.1 kB / 0.7391 GB, free: 50.71 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007668/1.68, allocations: 6.428 MB / 0.7454 GB, free: 44.39 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009298/1.681, allocations: 85.7 kB / 0.7455 GB, free: 44.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002766/1.684, allocations: 5.017 MB / 0.7504 GB, free: 39.68 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001802/1.685, allocations: 1.432 MB / 0.7518 GB, free: 38.26 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002585/1.688, allocations: 1.849 MB / 0.7536 GB, free: 36.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.569e-05/1.688, allocations: 305.1 kB / 0.7538 GB, free: 36.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005896/1.694, allocations: 5.659 MB / 0.7594 GB, free: 30.43 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007834/1.702, allocations: 10.62 MB / 0.7697 GB, free: 17.46 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01664/1.718, allocations: 17.35 MB / 0.7867 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001696/1.719, allocations: 52 kB / 0.7867 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04961/1.768, allocations: 21.92 MB / 0.8081 GB, free: 7.773 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001965/1.768, allocations: 80 kB / 0.8082 GB, free: 7.695 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000289/1.769, allocations: 175.9 kB / 0.8084 GB, free: 7.523 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02113/1.79, allocations: 6.853 MB / 0.8151 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007604/1.797, allocations: 2.07 MB / 0.8171 GB, free: 14.58 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2676/2.065, allocations: 36.41 MB / 0.8527 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008234/2.073, allocations: 0.7181 MB / 0.8534 GB, free: 177.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001683/2.075, allocations: 0.512 MB / 0.8539 GB, free: 177.2 MB / 0.5607 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.006142/2.081, allocations: 3.416 MB / 0.8572 GB, free: 175.9 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/2.083, allocations: 0.6135 MB / 0.8578 GB, free: 175.9 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0283/2.111, allocations: 16.03 MB / 0.8735 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.869e-05/2.111, allocations: 48.66 kB / 0.8735 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.882e-05/2.111, allocations: 17.12 kB / 0.8735 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.1e-05/2.111, allocations: 19.03 kB / 0.8735 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05076/2.162, allocations: 31.23 MB / 0.904 GB, free: 150.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.092e-05/2.162, allocations: 0 / 0.904 GB, free: 150.6 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00291/2.165, allocations: 0.6062 MB / 0.9046 GB, free: 150 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01683/2.182, allocations: 6.436 MB / 0.9109 GB, free: 143.6 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009216/2.183, allocations: 64 kB / 0.911 GB, free: 143.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03599/2.219, allocations: 34.62 MB / 0.9448 GB, free: 108.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/2.219, allocations: 10.59 kB / 0.9448 GB, free: 108.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03385/2.252, allocations: 23.49 MB / 0.9677 GB, free: 85.49 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002461/2.255, allocations: 0.6611 MB / 0.9684 GB, free: 84.82 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002228/2.257, allocations: 63.94 kB / 0.9684 GB, free: 84.75 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005088/2.262, allocations: 439.6 kB / 0.9689 GB, free: 84.33 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001467/2.264, allocations: 242.6 kB / 0.9691 GB, free: 84.09 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003853/2.264, allocations: 95.98 kB / 0.9692 GB, free: 84 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00611/2.27, allocations: 4.103 MB / 0.9732 GB, free: 79.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8.1e-08/2.27, allocations: 3.969 kB / 0.9732 GB, free: 79.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009553/2.28, allocations: 2.192 MB / 0.9753 GB, free: 77.73 MB / 0.5607 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.03567/2.315, allocations: 24.28 MB / 0.999 GB, free: 53.41 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01952/2.335, allocations: 13.68 MB / 1.012 GB, free: 39.73 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.335, allocations: 0 / 1.012 GB, free: 39.73 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.009132/2.344, allocations: 6.022 MB / 1.018 GB, free: 33.66 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007079/2.351, allocations: 0.9301 MB / 1.019 GB, free: 32.78 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.399/2.75, allocations: 102.7 MB / 1.12 GB, free: 131.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008268/2.758, allocations: 5.266 MB / 1.125 GB, free: 126 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006765/2.765, allocations: 3.031 MB / 1.128 GB, free: 123 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004457/2.77, allocations: 3.386 MB / 1.131 GB, free: 119.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.022e-06/2.77, allocations: 0 / 1.131 GB, free: 119.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4557/3.225, allocations: 167.8 MB / 1.295 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.31/31.54, allocations: 5.625 kB / 1.295 GB, free: 160.2 MB / 0.5607 GB " [Timeout remaining time 628] (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 --stepSize=0.0009996 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 35.64683139603585]