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.001612/0.001612, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001788/0.001788, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2481, allocations: 50.53 MB / 408.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01846/0.2666, allocations: 19.37 MB / 428.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.2787, allocations: 5.986 MB / 434.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.2824, allocations: 155.4 kB / 434.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01053/0.293, allocations: 5.825 MB / 440.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009015/0.302, allocations: 3.295 MB / 443.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003709/0.3057, allocations: 1.576 MB / 445 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0173/0.3231, allocations: 12.66 MB / 457.6 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01016/0.3333, allocations: 7.646 MB / 465.3 MB, free: 8.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006453/0.3398, allocations: 3.571 MB / 468.9 MB, free: 5.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00709/0.3469, allocations: 4.744 MB / 473.6 MB, free: 480 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002903/0.3498, allocations: 0.711 MB / 474.3 MB, free: 15.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004731/0.3546, allocations: 1.67 MB / 476 MB, free: 14.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005541/0.3602, allocations: 4.232 MB / 480.2 MB, free: 9.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008084/0.3683, allocations: 4.741 MB / 485 MB, free: 5.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01604/0.3843, allocations: 14.29 MB / 499.3 MB, free: 6.738 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3844, allocations: 3.938 kB / 499.3 MB, free: 6.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3844, allocations: 0 / 499.3 MB, free: 6.734 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004513/0.3849, allocations: 4 kB / 499.3 MB, free: 6.73 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.03043/0.4153, allocations: 10.3 MB / 0.4976 GB, free: 12.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.4154, allocations: 12.03 kB / 0.4976 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003339/0.4187, allocations: 1.148 MB / 0.4987 GB, free: 11.17 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2701/0.6888, allocations: 24.24 MB / 0.5224 GB, free: 2.887 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/0.7094, allocations: 9.129 MB / 0.5313 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003818/0.7098, allocations: 431.2 kB / 0.5317 GB, free: 9.238 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001932/0.7118, allocations: 0.5776 MB / 0.5323 GB, free: 8.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3747/1.086, allocations: 16.17 MB / 0.5481 GB, free: 113.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002927/1.087, allocations: 94.5 kB / 0.5482 GB, free: 113.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009255/1.088, allocations: 271.5 kB / 0.5485 GB, free: 113.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003465/1.091, allocations: 2.769 MB / 0.5512 GB, free: 113 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02203/1.113, allocations: 12.86 MB / 0.5637 GB, free: 106.2 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.06474/1.178, allocations: 66.12 MB / 0.6283 GB, free: 39.01 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01722/1.195, allocations: 7.599 MB / 0.6357 GB, free: 31.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004499/1.2, allocations: 4.209 MB / 0.6398 GB, free: 27.06 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01663/1.217, allocations: 11.68 MB / 0.6512 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/1.217, allocations: 64.56 kB / 0.6513 GB, free: 15.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.56e-06/1.217, allocations: 3.938 kB / 0.6513 GB, free: 15.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1639/1.38, allocations: 47.38 MB / 0.6975 GB, free: 15.79 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/1.381, allocations: 402 kB / 0.6979 GB, free: 15.31 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01324/1.394, allocations: 7.142 MB / 0.7049 GB, free: 8.199 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008258/1.395, allocations: 77.7 kB / 0.705 GB, free: 8.117 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004376/1.399, allocations: 5.175 MB / 0.71 GB, free: 2.871 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.401, allocations: 1.245 MB / 0.7113 GB, free: 1.609 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005072/1.406, allocations: 1.646 MB / 0.7129 GB, free: 15.95 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.885e-05/1.406, allocations: 305.1 kB / 0.7132 GB, free: 15.64 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006259/1.413, allocations: 3.967 MB / 0.717 GB, free: 11.67 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00944/1.422, allocations: 8.576 MB / 0.7254 GB, free: 0.8086 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/1.439, allocations: 13.5 MB / 0.7386 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001673/1.439, allocations: 44 kB / 0.7386 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2557/1.695, allocations: 17.16 MB / 0.7554 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.995e-05/1.695, allocations: 75.84 kB / 0.7555 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/1.695, allocations: 160.7 kB / 0.7556 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01557/1.711, allocations: 5.765 MB / 0.7612 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005319/1.716, allocations: 1.753 MB / 0.763 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03558/1.752, allocations: 31.65 MB / 0.7939 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00707/1.759, allocations: 0.527 MB / 0.7944 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/1.76, allocations: 472 kB / 0.7948 GB, free: 143.7 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.005017/1.765, allocations: 3.464 MB / 0.7982 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.766, allocations: 0.6555 MB / 0.7988 GB, free: 140 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02063/1.787, allocations: 11.47 MB / 0.81 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.8e-05/1.787, allocations: 39.94 kB / 0.8101 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.177e-05/1.787, allocations: 19.03 kB / 0.8101 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-05/1.787, allocations: 19.94 kB / 0.8101 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04329/1.831, allocations: 24.72 MB / 0.8343 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.661e-05/1.831, allocations: 8 kB / 0.8343 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001906/1.833, allocations: 415.4 kB / 0.8347 GB, free: 103 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01487/1.847, allocations: 5.38 MB / 0.8399 GB, free: 97.61 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007685/1.848, allocations: 60 kB / 0.84 GB, free: 97.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03429/1.883, allocations: 30.34 MB / 0.8696 GB, free: 66.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.883, allocations: 7.938 kB / 0.8696 GB, free: 66.98 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02604/1.909, allocations: 16.48 MB / 0.8857 GB, free: 50.33 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/1.911, allocations: 0.6846 MB / 0.8864 GB, free: 49.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001896/1.912, allocations: 65.52 kB / 0.8864 GB, free: 49.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/1.916, allocations: 263.9 kB / 0.8867 GB, free: 49.31 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009806/1.917, allocations: 238.6 kB / 0.8869 GB, free: 49.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004439/1.918, allocations: 99.81 kB / 0.887 GB, free: 48.98 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00779/1.926, allocations: 4.616 MB / 0.8915 GB, free: 44.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/1.926, allocations: 0 / 0.8915 GB, free: 44.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008812/1.934, allocations: 1.948 MB / 0.8934 GB, free: 42.45 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.02657/1.961, allocations: 17.18 MB / 0.9102 GB, free: 25.08 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01493/1.976, allocations: 10.52 MB / 0.9205 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/1.976, allocations: 192 / 0.9205 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006836/1.983, allocations: 4.691 MB / 0.9251 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005913/1.989, allocations: 1.079 MB / 0.9261 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3624/2.351, allocations: 91.3 MB / 1.015 GB, free: 128.8 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009221/2.361, allocations: 5.527 MB / 1.021 GB, free: 123.3 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.006406/2.367, allocations: 2.622 MB / 1.023 GB, free: 120.6 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005113/2.372, allocations: 3.737 MB / 1.027 GB, free: 116.9 MB / 0.5451 GB Notification: Performance of SimCode: time 9.12e-07/2.372, allocations: 3.938 kB / 1.027 GB, free: 116.9 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4206/2.793, allocations: 160 MB / 1.183 GB, free: 150.9 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 39/41.79, allocations: 6.062 kB / 1.183 GB, free: 150.9 MB / 0.5451 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