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.00119/0.00119, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2522, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01754/0.2698, allocations: 19.37 MB / 428.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.2822, allocations: 5.981 MB / 434.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003555/0.2858, allocations: 159.4 kB / 434.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01027/0.2962, allocations: 5.829 MB / 440.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008339/0.3045, allocations: 3.404 MB / 443.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.3082, allocations: 1.576 MB / 445.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01881/0.327, allocations: 12.66 MB / 457.8 MB, free: 388 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01656/0.3436, allocations: 7.647 MB / 465.4 MB, free: 8.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008542/0.3522, allocations: 3.568 MB / 469 MB, free: 5.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007083/0.3593, allocations: 4.748 MB / 473.7 MB, free: 312 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002371/0.3617, allocations: 0.711 MB / 474.4 MB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004312/0.3661, allocations: 1.666 MB / 476.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005684/0.3718, allocations: 4.24 MB / 480.3 MB, free: 9.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008544/0.3804, allocations: 4.741 MB / 485.1 MB, free: 4.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01811/0.3985, allocations: 14.35 MB / 499.4 MB, free: 6.508 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.3986, allocations: 3.938 kB / 499.4 MB, free: 6.504 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3986, allocations: 0 / 499.4 MB, free: 6.504 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005306/0.3991, allocations: 4 kB / 499.4 MB, free: 6.5 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.03048/0.4296, allocations: 10.56 MB / 0.498 GB, free: 11.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.4297, allocations: 12.03 kB / 0.498 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003034/0.4327, allocations: 1.144 MB / 0.4992 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2945/0.7272, allocations: 24.3 MB / 0.5229 GB, free: 2.336 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02111/0.7484, allocations: 9.168 MB / 0.5318 GB, free: 9.074 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003744/0.7488, allocations: 427.2 kB / 0.5323 GB, free: 8.656 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002106/0.7509, allocations: 0.5894 MB / 0.5328 GB, free: 8.066 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3953/1.146, allocations: 16.17 MB / 0.5486 GB, free: 113.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003679/1.147, allocations: 100.7 kB / 0.5487 GB, free: 113.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001182/1.148, allocations: 263.1 kB / 0.549 GB, free: 113.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003982/1.152, allocations: 2.768 MB / 0.5517 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02417/1.176, allocations: 12.86 MB / 0.5642 GB, free: 105.4 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.06491/1.241, allocations: 66.23 MB / 0.6289 GB, free: 38.18 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01732/1.258, allocations: 7.588 MB / 0.6363 GB, free: 30.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004131/1.263, allocations: 4.205 MB / 0.6404 GB, free: 26.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01575/1.278, allocations: 11.71 MB / 0.6519 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/1.278, allocations: 68.5 kB / 0.6519 GB, free: 14.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=280): time 5.711e-06/1.278, allocations: 3.938 kB / 0.6519 GB, free: 14.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1711/1.45, allocations: 47.79 MB / 0.6986 GB, free: 15.04 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/1.45, allocations: 406.1 kB / 0.699 GB, free: 14.55 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/1.46, allocations: 7.162 MB / 0.706 GB, free: 7.512 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0007802/1.461, allocations: 77.7 kB / 0.7061 GB, free: 7.43 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004089/1.465, allocations: 5.343 MB / 0.7113 GB, free: 2.293 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001743/1.467, allocations: 1.302 MB / 0.7125 GB, free: 0.9805 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002677/1.47, allocations: 1.659 MB / 0.7142 GB, free: 15.31 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.413e-05/1.47, allocations: 305.1 kB / 0.7145 GB, free: 15.01 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005737/1.475, allocations: 3.963 MB / 0.7183 GB, free: 11.04 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008715/1.484, allocations: 8.587 MB / 0.7267 GB, free: 168 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01496/1.499, allocations: 13.48 MB / 0.7399 GB, free: 412 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001378/1.499, allocations: 44 kB / 0.7399 GB, free: 368 kB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.2329/1.732, allocations: 17.19 MB / 0.7567 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.79e-05/1.732, allocations: 72.56 kB / 0.7568 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001955/1.733, allocations: 163.7 kB / 0.7569 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.016/1.749, allocations: 5.769 MB / 0.7626 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005064/1.754, allocations: 1.752 MB / 0.7643 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03558/1.789, allocations: 31.67 MB / 0.7952 GB, free: 144 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007128/1.797, allocations: 0.5201 MB / 0.7957 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.798, allocations: 472.2 kB / 0.7962 GB, free: 143.1 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.005164/1.803, allocations: 3.475 MB / 0.7996 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001291/1.804, allocations: 0.6857 MB / 0.8002 GB, free: 139.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02108/1.825, allocations: 11.47 MB / 0.8114 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.951e-05/1.825, allocations: 36 kB / 0.8115 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.439e-05/1.825, allocations: 20 kB / 0.8115 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.442e-05/1.826, allocations: 15.94 kB / 0.8115 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04033/1.866, allocations: 24.74 MB / 0.8357 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-05/1.866, allocations: 8 kB / 0.8357 GB, free: 102.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/1.868, allocations: 419.3 kB / 0.8361 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01501/1.883, allocations: 5.372 MB / 0.8413 GB, free: 96.97 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005819/1.884, allocations: 68 kB / 0.8414 GB, free: 96.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03345/1.917, allocations: 30.35 MB / 0.871 GB, free: 66.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/1.917, allocations: 15.88 kB / 0.871 GB, free: 66.32 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02576/1.943, allocations: 16.51 MB / 0.8872 GB, free: 49.64 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.945, allocations: 0.7139 MB / 0.8879 GB, free: 48.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001513/1.946, allocations: 63.59 kB / 0.8879 GB, free: 48.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003531/1.95, allocations: 263.6 kB / 0.8882 GB, free: 48.59 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008185/1.951, allocations: 242.6 kB / 0.8884 GB, free: 48.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002721/1.951, allocations: 88 kB / 0.8885 GB, free: 48.27 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006318/1.957, allocations: 4.616 MB / 0.893 GB, free: 43.69 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/1.957, allocations: 0 / 0.893 GB, free: 43.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007817/1.965, allocations: 1.952 MB / 0.8949 GB, free: 41.74 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.0263/1.991, allocations: 17.22 MB / 0.9117 GB, free: 24.33 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0153/2.007, allocations: 10.52 MB / 0.922 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/2.007, allocations: 0 / 0.922 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007772/2.015, allocations: 4.706 MB / 0.9266 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007936/2.023, allocations: 1.081 MB / 0.9276 GB, free: 7.941 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3353/2.358, allocations: 91.63 MB / 1.017 GB, free: 127.5 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005939/2.364, allocations: 5.525 MB / 1.023 GB, free: 122 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.005362/2.369, allocations: 2.624 MB / 1.025 GB, free: 119.3 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004143/2.373, allocations: 3.737 MB / 1.029 GB, free: 115.6 MB / 0.5451 GB Notification: Performance of SimCode: time 7.92e-07/2.373, allocations: 0 / 1.029 GB, free: 115.6 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4058/2.779, allocations: 157.4 MB / 1.182 GB, free: 152.5 MB / 0.5451 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.92/41.7, allocations: 17.73 kB / 1.182 GB, free: 152.5 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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