Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001577/0.001577, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001846, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3052, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01873/0.324, allocations: 19.36 MB / 428.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01608/0.3401, allocations: 5.986 MB / 434.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00485/0.345, allocations: 159.4 kB / 434.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01106/0.3562, allocations: 5.829 MB / 440.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009616/0.3658, allocations: 3.299 MB / 443.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0039/0.3697, allocations: 1.568 MB / 445 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01763/0.3874, allocations: 12.67 MB / 457.6 MB, free: 492 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01118/0.3986, allocations: 7.647 MB / 465.3 MB, free: 8.746 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007008/0.4057, allocations: 3.567 MB / 468.9 MB, free: 5.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007577/0.4133, allocations: 4.752 MB / 473.6 MB, free: 412 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002963/0.4163, allocations: 0.7149 MB / 474.3 MB, free: 15.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004753/0.421, allocations: 1.662 MB / 476 MB, free: 14.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005847/0.4269, allocations: 4.228 MB / 480.2 MB, free: 9.785 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008323/0.4353, allocations: 4.744 MB / 485 MB, free: 5.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01827/0.4536, allocations: 14.3 MB / 499.3 MB, free: 6.672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.4536, allocations: 0 / 499.3 MB, free: 6.672 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4536, allocations: 4 kB / 499.3 MB, free: 6.668 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005772/0.4542, allocations: 0 / 499.3 MB, free: 6.668 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03463/0.4889, allocations: 10.3 MB / 0.4976 GB, free: 12.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.045e-05/0.4889, allocations: 8.031 kB / 0.4976 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00498/0.4939, allocations: 1.148 MB / 0.4987 GB, free: 11.1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3071/0.8011, allocations: 24.24 MB / 0.5224 GB, free: 2.812 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0229/0.824, allocations: 9.121 MB / 0.5313 GB, free: 9.594 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004455/0.8245, allocations: 427.2 kB / 0.5317 GB, free: 9.176 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002561/0.8271, allocations: 0.5854 MB / 0.5323 GB, free: 8.59 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.425/1.252, allocations: 16.17 MB / 0.5481 GB, free: 113.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002653/1.252, allocations: 106.9 kB / 0.5482 GB, free: 113.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006556/1.253, allocations: 266.6 kB / 0.5485 GB, free: 113.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003536/1.257, allocations: 2.759 MB / 0.5511 GB, free: 113 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/1.28, allocations: 12.87 MB / 0.5637 GB, free: 106.1 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06988/1.35, allocations: 66.13 MB / 0.6283 GB, free: 38.87 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01772/1.368, allocations: 7.581 MB / 0.6357 GB, free: 31.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004688/1.373, allocations: 4.206 MB / 0.6398 GB, free: 26.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01919/1.392, allocations: 11.68 MB / 0.6512 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.253e-05/1.392, allocations: 64.48 kB / 0.6513 GB, free: 14.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 7.795e-06/1.392, allocations: 0 / 0.6513 GB, free: 14.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1761/1.568, allocations: 47.38 MB / 0.6975 GB, free: 15.65 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001962/1.568, allocations: 398.1 kB / 0.6979 GB, free: 15.18 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01317/1.581, allocations: 7.143 MB / 0.7049 GB, free: 8.062 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0007387/1.582, allocations: 77.7 kB / 0.705 GB, free: 7.98 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003956/1.586, allocations: 5.179 MB / 0.71 GB, free: 2.738 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/1.588, allocations: 1.245 MB / 0.7112 GB, free: 1.477 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003945/1.592, allocations: 1.642 MB / 0.7129 GB, free: 15.82 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 8.973e-05/1.592, allocations: 305.1 kB / 0.7131 GB, free: 15.52 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005811/1.598, allocations: 3.963 MB / 0.717 GB, free: 11.55 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009002/1.607, allocations: 8.588 MB / 0.7254 GB, free: 0.6758 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01754/1.624, allocations: 13.49 MB / 0.7386 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001763/1.625, allocations: 44 kB / 0.7386 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2559/1.88, allocations: 17.17 MB / 0.7554 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.02e-05/1.881, allocations: 75.59 kB / 0.7555 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000139/1.881, allocations: 159.6 kB / 0.7556 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01679/1.898, allocations: 5.769 MB / 0.7612 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005222/1.903, allocations: 1.752 MB / 0.763 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03533/1.938, allocations: 31.66 MB / 0.7939 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006691/1.945, allocations: 0.5221 MB / 0.7944 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008953/1.946, allocations: 475.9 kB / 0.7948 GB, free: 143.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * Array equations: 3 * 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 {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004736/1.951, allocations: 3.462 MB / 0.7982 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/1.952, allocations: 0.6487 MB / 0.7988 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02061/1.972, allocations: 11.48 MB / 0.8101 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-05/1.972, allocations: 32 kB / 0.8101 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.266e-05/1.972, allocations: 20 kB / 0.8101 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-05/1.973, allocations: 15.94 kB / 0.8101 GB, free: 128.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03908/2.012, allocations: 24.72 MB / 0.8343 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.922e-05/2.012, allocations: 4 kB / 0.8343 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/2.013, allocations: 424.7 kB / 0.8347 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01529/2.029, allocations: 5.373 MB / 0.8399 GB, free: 97.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005256/2.029, allocations: 63.98 kB / 0.84 GB, free: 97.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03202/2.061, allocations: 30.34 MB / 0.8696 GB, free: 66.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/2.061, allocations: 11.94 kB / 0.8696 GB, free: 66.77 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02598/2.087, allocations: 16.47 MB / 0.8857 GB, free: 50.13 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001997/2.089, allocations: 0.6937 MB / 0.8864 GB, free: 49.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001705/2.091, allocations: 60 kB / 0.8864 GB, free: 49.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003999/2.095, allocations: 259.8 kB / 0.8867 GB, free: 49.11 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009808/2.096, allocations: 242.6 kB / 0.8869 GB, free: 48.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002753/2.096, allocations: 88.28 kB / 0.887 GB, free: 48.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007101/2.104, allocations: 4.613 MB / 0.8915 GB, free: 44.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.21e-07/2.104, allocations: 0 / 0.8915 GB, free: 44.21 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008077/2.112, allocations: 1.963 MB / 0.8934 GB, free: 42.25 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.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 (214): * Single equations (assignments): 208 * Array equations: 3 * 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 {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02703/2.139, allocations: 17.19 MB / 0.9102 GB, free: 24.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01472/2.153, allocations: 10.5 MB / 0.9205 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/2.154, allocations: 8 kB / 0.9205 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007082/2.161, allocations: 4.685 MB / 0.9251 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006053/2.167, allocations: 1.09 MB / 0.9261 GB, free: 8.512 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3619/2.529, allocations: 91.29 MB / 1.015 GB, free: 128.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00851/2.537, allocations: 5.532 MB / 1.021 GB, free: 122.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006054/2.543, allocations: 2.624 MB / 1.023 GB, free: 120.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004833/2.548, allocations: 3.733 MB / 1.027 GB, free: 116.5 MB / 0.545 GB Notification: Performance of SimCode: time 9.92e-07/2.548, allocations: 0 / 1.027 GB, free: 116.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4173/2.965, allocations: 160 MB / 1.183 GB, free: 150.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.33/41.29, allocations: 18 kB / 1.183 GB, free: 150.8 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches