Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001913/0.001913, allocations: 113.7 kB / 17.73 MB, free: 5.211 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002267/0.002267, allocations: 183.1 kB / 18.66 MB, free: 4.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09275, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1925/0.2853, allocations: 19.49 MB / 394.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01547/0.3008, allocations: 6.004 MB / 400.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005043/0.3059, allocations: 156 kB / 400.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01309/0.3191, allocations: 5.859 MB / 406.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01087/0.33, allocations: 3.36 MB / 409.5 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004508/0.3346, allocations: 1.571 MB / 411.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01776/0.3523, allocations: 11.36 MB / 422.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01171/0.3641, allocations: 7.664 MB / 430.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007298/0.3714, allocations: 3.579 MB / 433.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007731/0.3792, allocations: 4.764 MB / 438.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00255/0.3818, allocations: 0.7148 MB / 439.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005028/0.3868, allocations: 1.67 MB / 440.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006786/0.3937, allocations: 4.208 MB / 445.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01098/0.4047, allocations: 4.799 MB / 449.9 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02163/0.4264, allocations: 14.49 MB / 464.3 MB, free: 5.887 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.4264, allocations: 3.984 kB / 464.3 MB, free: 5.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4264, allocations: 3.938 kB / 464.4 MB, free: 5.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004556/0.4269, allocations: 0 / 464.4 MB, free: 5.879 MB / 382.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.03286/0.4598, allocations: 10.66 MB / 475 MB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.4598, allocations: 8.031 kB / 475 MB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003376/0.4632, allocations: 1.144 MB / 476.2 MB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3036/0.7669, allocations: 24.31 MB / 0.4887 GB, free: 1.605 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02248/0.7894, allocations: 10.77 MB / 0.4993 GB, free: 6.75 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003953/0.7898, allocations: 423.4 kB / 0.4997 GB, free: 6.336 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001791/0.7916, allocations: 0.5933 MB / 0.5002 GB, free: 5.742 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0314/0.823, allocations: 16.17 MB / 0.516 GB, free: 4.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003023/0.8234, allocations: 99.3 kB / 0.5161 GB, free: 4.422 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009179/0.8243, allocations: 271.8 kB / 0.5164 GB, free: 4.156 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004797/0.8291, allocations: 2.768 MB / 0.5191 GB, free: 1.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02904/0.8582, allocations: 12.86 MB / 0.5316 GB, free: 4.508 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.3866/1.245, allocations: 66.21 MB / 0.5963 GB, free: 99.89 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01897/1.264, allocations: 7.599 MB / 0.6037 GB, free: 97.46 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004987/1.269, allocations: 4.202 MB / 0.6078 GB, free: 95.67 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01744/1.286, allocations: 11.73 MB / 0.6193 GB, free: 89.51 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.036e-05/1.286, allocations: 67.88 kB / 0.6193 GB, free: 89.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 5.971e-06/1.286, allocations: 0 / 0.6193 GB, free: 89.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1573/1.444, allocations: 46.62 MB / 0.6649 GB, free: 49.58 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/1.444, allocations: 402 kB / 0.6652 GB, free: 49.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009152/1.453, allocations: 7.264 MB / 0.6723 GB, free: 41.96 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008264/1.454, allocations: 81.7 kB / 0.6724 GB, free: 41.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002788/1.457, allocations: 5.346 MB / 0.6776 GB, free: 37.13 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001391/1.458, allocations: 1.306 MB / 0.6789 GB, free: 35.84 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002067/1.46, allocations: 1.663 MB / 0.6805 GB, free: 34.17 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.273e-05/1.46, allocations: 301.1 kB / 0.6808 GB, free: 33.87 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004335/1.465, allocations: 3.959 MB / 0.6847 GB, free: 29.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006142/1.471, allocations: 8.579 MB / 0.6931 GB, free: 19.04 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/1.483, allocations: 13.49 MB / 0.7062 GB, free: 3.273 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/1.483, allocations: 52 kB / 0.7063 GB, free: 3.223 MB / 478.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03756/1.521, allocations: 17.19 MB / 0.7231 GB, free: 1.965 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/1.521, allocations: 72 kB / 0.7232 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002162/1.521, allocations: 160 kB / 0.7233 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01892/1.54, allocations: 5.764 MB / 0.7289 GB, free: 11.96 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005933/1.546, allocations: 1.755 MB / 0.7306 GB, free: 10.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2216/1.767, allocations: 31.67 MB / 0.7616 GB, free: 149.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007197/1.775, allocations: 0.5277 MB / 0.7621 GB, free: 149.7 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001258/1.776, allocations: 470.5 kB / 0.7625 GB, free: 149.6 MB / 0.4982 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 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[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.005415/1.781, allocations: 3.479 MB / 0.7659 GB, free: 148.3 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.783, allocations: 0.6909 MB / 0.7666 GB, free: 148.3 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02274/1.806, allocations: 11.47 MB / 0.7778 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.076e-05/1.806, allocations: 36.66 kB / 0.7778 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-05/1.806, allocations: 24.3 kB / 0.7779 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.522e-05/1.806, allocations: 18.78 kB / 0.7779 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04012/1.846, allocations: 24.75 MB / 0.8021 GB, free: 128.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.474e-05/1.846, allocations: 4 kB / 0.8021 GB, free: 128.3 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/1.848, allocations: 426.5 kB / 0.8025 GB, free: 127.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01563/1.863, allocations: 5.385 MB / 0.8077 GB, free: 122.6 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006472/1.864, allocations: 63.94 kB / 0.8078 GB, free: 122.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03375/1.898, allocations: 30.35 MB / 0.8374 GB, free: 92 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.898, allocations: 7.938 kB / 0.8374 GB, free: 92 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02619/1.924, allocations: 16.5 MB / 0.8536 GB, free: 75.67 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003159/1.927, allocations: 1.353 MB / 0.8549 GB, free: 74.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/1.929, allocations: 60 kB / 0.8549 GB, free: 74.25 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003175/1.932, allocations: 267.2 kB / 0.8552 GB, free: 73.99 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007336/1.933, allocations: 242.2 kB / 0.8554 GB, free: 73.75 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002537/1.933, allocations: 91.98 kB / 0.8555 GB, free: 73.66 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005901/1.939, allocations: 4.688 MB / 0.8601 GB, free: 69.02 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.1e-07/1.939, allocations: 0 / 0.8601 GB, free: 69.02 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.007628/1.946, allocations: 1.977 MB / 0.862 GB, free: 67.04 MB / 0.4982 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.02685/1.973, allocations: 17.19 MB / 0.8788 GB, free: 49.72 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01517/1.988, allocations: 10.51 MB / 0.8891 GB, free: 39.18 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/1.988, allocations: 0 / 0.8891 GB, free: 39.18 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007354/1.996, allocations: 4.696 MB / 0.8937 GB, free: 34.44 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006786/2.003, allocations: 1.096 MB / 0.8947 GB, free: 33.39 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3353/2.338, allocations: 92.15 MB / 0.9847 GB, free: 143.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006232/2.344, allocations: 5.551 MB / 0.9901 GB, free: 138 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005467/2.35, allocations: 2.63 MB / 0.9927 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003859/2.354, allocations: 3.717 MB / 0.9963 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of SimCode: time 8.71e-07/2.354, allocations: 0 / 0.9963 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4029/2.757, allocations: 158.2 MB / 1.151 GB, free: 157.5 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.95/44.71, allocations: 9.234 kB / 1.151 GB, free: 157.5 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches