Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.00146, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 55.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2633, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.01967/0.283, allocations: 20.43 MB / 429.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.2961, allocations: 6.197 MB / 435.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003801/0.3, allocations: 167.4 kB / 435.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01066/0.3107, allocations: 6.32 MB / 441.9 MB, free: 280 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008018/0.3187, allocations: 3.396 MB / 445.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003408/0.3222, allocations: 1.658 MB / 447 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01605/0.3382, allocations: 12.95 MB / 459.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009701/0.348, allocations: 8.049 MB / 468 MB, free: 6.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008211/0.3562, allocations: 3.751 MB / 471.7 MB, free: 2.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008639/0.3649, allocations: 4.955 MB / 476.7 MB, free: 13.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002586/0.3675, allocations: 0.75 MB / 477.4 MB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004538/0.3721, allocations: 1.698 MB / 479.1 MB, free: 10.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005887/0.378, allocations: 4.411 MB / 483.5 MB, free: 6.488 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008454/0.3865, allocations: 4.939 MB / 488.5 MB, free: 1.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01803/0.4046, allocations: 14.81 MB / 0.4915 GB, free: 2.668 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.4046, allocations: 0 / 0.4915 GB, free: 2.668 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4046, allocations: 0 / 0.4915 GB, free: 2.668 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000524/0.4052, allocations: 0 / 0.4915 GB, free: 2.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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03106/0.4362, allocations: 10.66 MB / 0.5019 GB, free: 7.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.4363, allocations: 12.02 kB / 0.5019 GB, free: 7.898 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003686/0.44, allocations: 1.19 MB / 0.5031 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.299/0.739, allocations: 24.29 MB / 0.5268 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0215/0.7605, allocations: 9.318 MB / 0.5359 GB, free: 4.957 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/0.761, allocations: 447.8 kB / 0.5363 GB, free: 4.52 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002186/0.7632, allocations: 0.6127 MB / 0.5369 GB, free: 3.906 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.403/1.166, allocations: 16.74 MB / 0.5533 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000303/1.167, allocations: 101.4 kB / 0.5534 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001222/1.168, allocations: 275.7 kB / 0.5536 GB, free: 112 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003902/1.172, allocations: 2.856 MB / 0.5564 GB, free: 111 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02595/1.198, allocations: 13.27 MB / 0.5694 GB, free: 99.83 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.07319/1.271, allocations: 68 MB / 0.6358 GB, free: 30.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/1.289, allocations: 7.894 MB / 0.6435 GB, free: 22.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004611/1.294, allocations: 4.322 MB / 0.6477 GB, free: 18.37 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01812/1.312, allocations: 12.04 MB / 0.6595 GB, free: 6.121 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/1.312, allocations: 64.5 kB / 0.6595 GB, free: 6.051 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 5.771e-06/1.312, allocations: 3.656 kB / 0.6595 GB, free: 6.051 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1863/1.499, allocations: 49.8 MB / 0.7082 GB, free: 4.273 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/1.499, allocations: 394.2 kB / 0.7085 GB, free: 3.801 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01142/1.51, allocations: 7.303 MB / 0.7157 GB, free: 12.54 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008626/1.511, allocations: 89.64 kB / 0.7158 GB, free: 12.44 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004258/1.515, allocations: 5.339 MB / 0.721 GB, free: 7.039 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00185/1.517, allocations: 1.314 MB / 0.7223 GB, free: 5.707 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003725/1.521, allocations: 1.702 MB / 0.7239 GB, free: 3.988 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 8.532e-05/1.521, allocations: 301.1 kB / 0.7242 GB, free: 3.691 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006728/1.528, allocations: 4.124 MB / 0.7282 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01022/1.538, allocations: 8.862 MB / 0.7369 GB, free: 4.367 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2161/1.754, allocations: 13.95 MB / 0.7505 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/1.754, allocations: 47.19 kB / 0.7506 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03515/1.79, allocations: 17.86 MB / 0.768 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.44e-05/1.79, allocations: 79.75 kB / 0.7681 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/1.79, allocations: 168.9 kB / 0.7682 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01769/1.808, allocations: 6.039 MB / 0.7741 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005692/1.813, allocations: 1.831 MB / 0.7759 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03582/1.849, allocations: 32.88 MB / 0.808 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007096/1.856, allocations: 0.5348 MB / 0.8085 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001223/1.858, allocations: 491.6 kB / 0.809 GB, free: 127.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (967): * Single equations (assignments): 961 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004654/1.862, allocations: 3.593 MB / 0.8125 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.863, allocations: 0.6715 MB / 0.8132 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02184/1.885, allocations: 12.09 MB / 0.825 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.415e-05/1.885, allocations: 36 kB / 0.825 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-05/1.885, allocations: 20 kB / 0.825 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.783e-05/1.885, allocations: 15.94 kB / 0.8251 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04305/1.928, allocations: 25.85 MB / 0.8503 GB, free: 84.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.693e-05/1.929, allocations: 4 kB / 0.8503 GB, free: 84.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002124/1.931, allocations: 467.3 kB / 0.8507 GB, free: 84.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01625/1.947, allocations: 5.704 MB / 0.8563 GB, free: 78.75 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005999/1.948, allocations: 63.98 kB / 0.8564 GB, free: 78.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03431/1.982, allocations: 31.69 MB / 0.8873 GB, free: 46.78 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.982, allocations: 8.703 kB / 0.8873 GB, free: 46.77 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02778/2.01, allocations: 17.41 MB / 0.9043 GB, free: 29.25 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001868/2.012, allocations: 0.7 MB / 0.905 GB, free: 28.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/2.013, allocations: 63.83 kB / 0.9051 GB, free: 28.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003546/2.017, allocations: 281.4 kB / 0.9053 GB, free: 28.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009371/2.018, allocations: 254.8 kB / 0.9056 GB, free: 27.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002861/2.018, allocations: 97.08 kB / 0.9057 GB, free: 27.85 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005952/2.024, allocations: 4.706 MB / 0.9103 GB, free: 23.18 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.6e-07/2.024, allocations: 0 / 0.9103 GB, free: 23.18 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007893/2.032, allocations: 2.033 MB / 0.9123 GB, free: 21.16 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * 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,90,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.02815/2.06, allocations: 18.11 MB / 0.9299 GB, free: 2.871 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2221/2.282, allocations: 10.93 MB / 0.9406 GB, free: 190.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/2.282, allocations: 10.97 kB / 0.9406 GB, free: 190.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009812/2.292, allocations: 4.956 MB / 0.9455 GB, free: 190.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006464/2.298, allocations: 1.112 MB / 0.9466 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.138/2.437, allocations: 94.76 MB / 1.039 GB, free: 107.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006818/2.443, allocations: 5.728 MB / 1.045 GB, free: 102.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005618/2.449, allocations: 2.713 MB / 1.047 GB, free: 99.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00404/2.453, allocations: 3.885 MB / 1.051 GB, free: 95.54 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/2.453, allocations: 0 / 1.051 GB, free: 95.54 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4559/2.909, allocations: 167 MB / 1.214 GB, free: 129.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.81/44.72, allocations: 7.516 kB / 1.214 GB, free: 129.2 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches