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.001812/0.001812, allocations: 104.5 kB / 17.59 MB, free: 5.438 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.002217/0.002217, allocations: 191.9 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.34/2.34, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.00253/0.00253, allocations: 59.92 kB / 280.8 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1327, allocations: 46.62 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.03694/0.1697, allocations: 19.49 MB / 346.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02123/0.191, allocations: 5.99 MB / 352.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005766/0.1968, allocations: 159.4 kB / 353 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01313/0.21, allocations: 5.856 MB / 358.9 MB, free: 4.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00998/0.2201, allocations: 3.361 MB / 362.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004287/0.2244, allocations: 1.572 MB / 363.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01917/0.2436, allocations: 11.38 MB / 375.2 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3373/0.581, allocations: 7.678 MB / 382.9 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01406/0.5951, allocations: 3.579 MB / 386.4 MB, free: 16.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01568/0.6109, allocations: 4.761 MB / 391.2 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006843/0.6178, allocations: 0.7155 MB / 391.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01124/0.6291, allocations: 1.676 MB / 393.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01082/0.64, allocations: 4.209 MB / 397.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01831/0.6584, allocations: 4.8 MB / 402.6 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03324/0.6917, allocations: 14.11 MB / 416.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.232e-05/0.6918, allocations: 0 / 416.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.6918, allocations: 3.562 kB / 416.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006717/0.6925, allocations: 0 / 416.7 MB, free: 5.277 MB / 318.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.06129/0.7539, allocations: 10.4 MB / 427.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001038/0.754, allocations: 8.031 kB / 427.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009107/0.7631, allocations: 1.144 MB / 428.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4241/1.187, allocations: 24.25 MB / 452.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02593/1.213, allocations: 10.55 MB / 463.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005861/1.214, allocations: 425.4 kB / 463.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003188/1.217, allocations: 0.5828 MB / 464.1 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06117/1.278, allocations: 16.18 MB / 480.2 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008826/1.279, allocations: 89.05 kB / 480.3 MB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003738/1.283, allocations: 271.1 kB / 480.6 MB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01052/1.294, allocations: 2.758 MB / 483.4 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05179/1.345, allocations: 12.87 MB / 496.2 MB, free: 8.348 MB / 398.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.4541/1.8, allocations: 66.43 MB / 0.5495 GB, free: 116.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03614/1.836, allocations: 7.583 MB / 0.5569 GB, free: 116.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008206/1.844, allocations: 4.196 MB / 0.561 GB, free: 115.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03623/1.88, allocations: 11.72 MB / 0.5724 GB, free: 110.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/1.881, allocations: 69.97 kB / 0.5725 GB, free: 110.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 1.455e-05/1.881, allocations: 0 / 0.5725 GB, free: 110.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.2811/2.162, allocations: 46.18 MB / 0.6176 GB, free: 77.47 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/2.162, allocations: 398.1 kB / 0.618 GB, free: 77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02/2.182, allocations: 7.26 MB / 0.625 GB, free: 69.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001503/2.184, allocations: 77.7 kB / 0.6251 GB, free: 69.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005855/2.189, allocations: 5.174 MB / 0.6302 GB, free: 64.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002857/2.192, allocations: 1.253 MB / 0.6314 GB, free: 63.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004824/2.197, allocations: 1.642 MB / 0.633 GB, free: 61.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.329e-05/2.197, allocations: 305.1 kB / 0.6333 GB, free: 61.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008831/2.206, allocations: 3.955 MB / 0.6372 GB, free: 57.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.012/2.218, allocations: 8.584 MB / 0.6455 GB, free: 46.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0225/2.241, allocations: 13.47 MB / 0.6587 GB, free: 31.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00018/2.241, allocations: 48 kB / 0.6587 GB, free: 31.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.05948/2.301, allocations: 17.17 MB / 0.6755 GB, free: 13.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/2.301, allocations: 72.22 kB / 0.6756 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002344/2.301, allocations: 164 kB / 0.6757 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02901/2.33, allocations: 5.774 MB / 0.6814 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009949/2.34, allocations: 1.762 MB / 0.6831 GB, free: 6.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07296/2.413, allocations: 31.67 MB / 0.714 GB, free: 6.066 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01408/2.427, allocations: 0.5188 MB / 0.7145 GB, free: 5.547 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00278/2.43, allocations: 479.9 kB / 0.715 GB, free: 5.078 MB / 478.1 MB 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.01359/2.444, allocations: 3.469 MB / 0.7184 GB, free: 1.594 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003374/2.447, allocations: 0.6556 MB / 0.719 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3819/2.829, allocations: 11.49 MB / 0.7302 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001567/2.829, allocations: 35.47 kB / 0.7303 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.855e-05/2.829, allocations: 19.81 kB / 0.7303 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/2.83, allocations: 15.08 kB / 0.7303 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07701/2.907, allocations: 24.9 MB / 0.7546 GB, free: 159.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.828e-05/2.907, allocations: 10.31 kB / 0.7546 GB, free: 159.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002944/2.91, allocations: 423.1 kB / 0.755 GB, free: 159.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02589/2.936, allocations: 5.385 MB / 0.7603 GB, free: 158.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00131/2.937, allocations: 67.91 kB / 0.7603 GB, free: 158.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06026/2.997, allocations: 30.34 MB / 0.79 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.537e-05/2.997, allocations: 12.81 kB / 0.79 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04913/3.046, allocations: 16.45 MB / 0.8061 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007909/3.054, allocations: 1.318 MB / 0.8073 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004351/3.059, allocations: 63.94 kB / 0.8074 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009073/3.068, allocations: 265.2 kB / 0.8077 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002346/3.07, allocations: 245.1 kB / 0.8079 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007201/3.071, allocations: 84 kB / 0.808 GB, free: 113.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0141/3.085, allocations: 4.684 MB / 0.8125 GB, free: 109.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.02e-07/3.085, allocations: 0 / 0.8125 GB, free: 109.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01862/3.104, allocations: 1.983 MB / 0.8145 GB, free: 107.2 MB / 478.1 MB 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.0483/3.152, allocations: 17.17 MB / 0.8312 GB, free: 90.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03806/3.19, allocations: 13.3 MB / 0.8442 GB, free: 76.83 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.293e-05/3.191, allocations: 8.703 kB / 0.8442 GB, free: 76.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01339/3.204, allocations: 4.682 MB / 0.8488 GB, free: 72.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01406/3.218, allocations: 1.087 MB / 0.8499 GB, free: 71.05 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.612/3.83, allocations: 115.2 MB / 0.9624 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01804/3.848, allocations: 5.559 MB / 0.9678 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0139/3.862, allocations: 2.627 MB / 0.9704 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01192/3.874, allocations: 3.717 MB / 0.974 GB, free: 132 MB / 478.1 MB Notification: Performance of SimCode: time 3.366e-06/3.874, allocations: 0 / 0.974 GB, free: 132 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7035/4.578, allocations: 163.2 MB / 1.133 GB, free: 159.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.67/31.25, allocations: 11.92 kB / 1.133 GB, free: 159.1 MB / 478.1 MB (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