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.00155/0.00155, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001752/0.001752, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.219/1.219, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001525/0.001525, allocations: 51.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07772, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.0171/0.09485, allocations: 19.49 MB / 346.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009866/0.1048, allocations: 5.998 MB / 352.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/0.106, allocations: 159.4 kB / 353 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008254/0.1143, allocations: 5.852 MB / 358.9 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004746/0.119, allocations: 3.361 MB / 362.2 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002159/0.1212, allocations: 1.568 MB / 363.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01012/0.1313, allocations: 11.39 MB / 375.2 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1404/0.2717, allocations: 7.677 MB / 382.9 MB, free: 16.19 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005006/0.2768, allocations: 3.571 MB / 386.4 MB, free: 16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005681/0.2825, allocations: 4.766 MB / 391.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001521/0.284, allocations: 0.7149 MB / 391.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.287, allocations: 1.675 MB / 393.6 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002751/0.2897, allocations: 4.21 MB / 397.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003965/0.2937, allocations: 4.794 MB / 402.6 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009111/0.3028, allocations: 14.11 MB / 416.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3029, allocations: 0 / 416.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3029, allocations: 0 / 416.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003065/0.3032, allocations: 0 / 416.7 MB, free: 5.273 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.02354/0.3267, allocations: 10.4 MB / 427.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3268, allocations: 8.031 kB / 427.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001898/0.3287, allocations: 1.142 MB / 428.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2819/0.6106, allocations: 24.26 MB / 452.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02028/0.6309, allocations: 10.54 MB / 463.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003567/0.6313, allocations: 428 kB / 463.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/0.6334, allocations: 0.5833 MB / 464.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0273/0.6607, allocations: 16.18 MB / 480.2 MB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00025/0.661, allocations: 97.52 kB / 480.3 MB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006952/0.6617, allocations: 264 kB / 480.6 MB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004176/0.6659, allocations: 2.764 MB / 483.4 MB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0258/0.6917, allocations: 12.86 MB / 496.2 MB, free: 8.328 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.2238/0.9155, allocations: 66.42 MB / 0.5495 GB, free: 116.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/0.9338, allocations: 7.585 MB / 0.5569 GB, free: 116.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003827/0.9377, allocations: 4.206 MB / 0.561 GB, free: 115.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01436/0.952, allocations: 11.72 MB / 0.5724 GB, free: 110.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.9521, allocations: 73.33 kB / 0.5725 GB, free: 110.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 5.029e-06/0.9521, allocations: 3.406 kB / 0.5725 GB, free: 110.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1438/1.096, allocations: 46.17 MB / 0.6176 GB, free: 77.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.472e-05/1.096, allocations: 402 kB / 0.618 GB, free: 77.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007628/1.104, allocations: 7.255 MB / 0.625 GB, free: 69.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00054/1.104, allocations: 81.69 kB / 0.6251 GB, free: 69.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/1.106, allocations: 5.178 MB / 0.6302 GB, free: 64.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009811/1.107, allocations: 1.24 MB / 0.6314 GB, free: 63.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001721/1.109, allocations: 1.648 MB / 0.633 GB, free: 61.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.057e-05/1.109, allocations: 301.1 kB / 0.6333 GB, free: 61.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003895/1.113, allocations: 3.959 MB / 0.6372 GB, free: 57.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005183/1.118, allocations: 8.58 MB / 0.6455 GB, free: 46.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/1.128, allocations: 13.48 MB / 0.6587 GB, free: 31.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.538e-05/1.129, allocations: 52 kB / 0.6587 GB, free: 31.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02689/1.155, allocations: 17.16 MB / 0.6755 GB, free: 13.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.303e-05/1.156, allocations: 76.06 kB / 0.6756 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001392/1.156, allocations: 164 kB / 0.6757 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01485/1.171, allocations: 5.772 MB / 0.6814 GB, free: 7.891 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004568/1.175, allocations: 1.754 MB / 0.6831 GB, free: 6.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03928/1.214, allocations: 31.67 MB / 0.714 GB, free: 6.051 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006603/1.221, allocations: 0.5188 MB / 0.7145 GB, free: 5.531 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001089/1.222, allocations: 476 kB / 0.715 GB, free: 5.066 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.005373/1.228, allocations: 3.469 MB / 0.7184 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/1.229, allocations: 0.6595 MB / 0.719 GB, free: 0.918 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1591/1.388, allocations: 11.49 MB / 0.7302 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.752e-05/1.388, allocations: 38.38 kB / 0.7303 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.149e-05/1.388, allocations: 18.75 kB / 0.7303 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.993e-05/1.388, allocations: 15.66 kB / 0.7303 GB, free: 170 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03529/1.423, allocations: 24.9 MB / 0.7546 GB, free: 159.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.88e-05/1.423, allocations: 10.44 kB / 0.7546 GB, free: 159.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/1.425, allocations: 428 kB / 0.755 GB, free: 159.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0142/1.439, allocations: 5.39 MB / 0.7603 GB, free: 158.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000439/1.44, allocations: 62.83 kB / 0.7603 GB, free: 158.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02993/1.47, allocations: 30.34 MB / 0.79 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/1.47, allocations: 15.91 kB / 0.79 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02308/1.493, allocations: 16.44 MB / 0.8061 GB, free: 115.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002931/1.496, allocations: 1.311 MB / 0.8073 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.497, allocations: 75.38 kB / 0.8074 GB, free: 114.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003066/1.5, allocations: 263.6 kB / 0.8077 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006996/1.501, allocations: 240.6 kB / 0.8079 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/1.501, allocations: 88 kB / 0.808 GB, free: 113.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005626/1.507, allocations: 4.692 MB / 0.8126 GB, free: 109.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.507, allocations: 0 / 0.8126 GB, free: 109.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007432/1.514, allocations: 1.972 MB / 0.8145 GB, free: 107.1 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.02434/1.538, allocations: 17.18 MB / 0.8313 GB, free: 90.06 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0173/1.556, allocations: 13.3 MB / 0.8442 GB, free: 76.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.556, allocations: 0 / 0.8442 GB, free: 76.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006094/1.562, allocations: 4.682 MB / 0.8488 GB, free: 72.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005126/1.567, allocations: 1.099 MB / 0.8499 GB, free: 71.01 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2766/1.844, allocations: 115.2 MB / 0.9624 GB, free: 134.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0056/1.849, allocations: 5.552 MB / 0.9678 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005885/1.855, allocations: 2.632 MB / 0.9704 GB, free: 132.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003524/1.859, allocations: 3.715 MB / 0.974 GB, free: 129.2 MB / 478.1 MB Notification: Performance of SimCode: time 9.91e-07/1.859, allocations: 0 / 0.974 GB, free: 129.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.047/5.906, allocations: 163.2 MB / 1.133 GB, free: 158.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.66/21.57, allocations: 11.92 kB / 1.133 GB, free: 158.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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