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.001253/0.001253, allocations: 104.9 kB / 17.73 MB, free: 5.219 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.001237/0.001237, allocations: 191 kB / 18.66 MB, free: 4.289 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.352/1.352, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001286/0.001286, allocations: 47.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08634/0.08764, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1913/0.279, allocations: 19.49 MB / 394.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.2934, allocations: 6.003 MB / 400.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005121/0.2985, allocations: 157.9 kB / 400.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01192/0.3105, allocations: 5.855 MB / 406.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009232/0.3198, allocations: 3.359 MB / 409.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003459/0.3233, allocations: 1.578 MB / 411.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01509/0.3384, allocations: 11.36 MB / 422.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008803/0.3472, allocations: 7.679 MB / 430.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006367/0.3536, allocations: 3.595 MB / 433.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007493/0.3612, allocations: 4.783 MB / 438.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00227/0.3635, allocations: 0.7148 MB / 439.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004619/0.3681, allocations: 1.674 MB / 440.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005145/0.3733, allocations: 4.283 MB / 445.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007836/0.3811, allocations: 4.795 MB / 450 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01584/0.397, allocations: 14.43 MB / 464.4 MB, free: 5.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.3971, allocations: 4 kB / 464.4 MB, free: 5.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3971, allocations: 3.938 kB / 464.4 MB, free: 5.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004621/0.3975, allocations: 0 / 464.4 MB, free: 5.824 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.0312/0.4288, allocations: 10.39 MB / 474.8 MB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.4288, allocations: 12.03 kB / 474.8 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003199/0.432, allocations: 1.144 MB / 476 MB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3082/0.7402, allocations: 24.25 MB / 0.4885 GB, free: 1.875 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02417/0.7644, allocations: 10.72 MB / 0.499 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004114/0.7649, allocations: 427.4 kB / 0.4994 GB, free: 6.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00232/0.7672, allocations: 0.5931 MB / 0.4999 GB, free: 6.047 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03282/0.8001, allocations: 16.16 MB / 0.5157 GB, free: 4.828 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004857/0.8006, allocations: 91.17 kB / 0.5158 GB, free: 4.738 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00218/0.8028, allocations: 271.8 kB / 0.5161 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004861/0.8077, allocations: 2.772 MB / 0.5188 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02986/0.8376, allocations: 12.85 MB / 0.5313 GB, free: 4.824 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.4098/1.247, allocations: 66.11 MB / 0.5959 GB, free: 100.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01893/1.266, allocations: 7.587 MB / 0.6033 GB, free: 97.93 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004575/1.271, allocations: 4.207 MB / 0.6074 GB, free: 96.14 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0173/1.288, allocations: 11.71 MB / 0.6189 GB, free: 89.99 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/1.288, allocations: 74.16 kB / 0.6189 GB, free: 89.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 6.041e-06/1.288, allocations: 0 / 0.6189 GB, free: 89.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1582/1.447, allocations: 46.19 MB / 0.664 GB, free: 50.32 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.447, allocations: 398.1 kB / 0.6644 GB, free: 49.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008811/1.456, allocations: 7.256 MB / 0.6715 GB, free: 42.62 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008633/1.456, allocations: 81.7 kB / 0.6716 GB, free: 42.54 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002852/1.459, allocations: 5.166 MB / 0.6766 GB, free: 37.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001416/1.461, allocations: 1.25 MB / 0.6778 GB, free: 36.12 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002168/1.463, allocations: 1.646 MB / 0.6794 GB, free: 34.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.163e-05/1.463, allocations: 305.1 kB / 0.6797 GB, free: 34.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004856/1.468, allocations: 3.959 MB / 0.6836 GB, free: 30.19 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006638/1.475, allocations: 8.579 MB / 0.692 GB, free: 19.33 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/1.487, allocations: 13.49 MB / 0.7052 GB, free: 3.566 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/1.487, allocations: 44 kB / 0.7052 GB, free: 3.523 MB / 478.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03355/1.521, allocations: 17.17 MB / 0.722 GB, free: 2.289 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.781e-05/1.521, allocations: 72 kB / 0.722 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/1.521, allocations: 160 kB / 0.7222 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01761/1.539, allocations: 5.764 MB / 0.7278 GB, free: 12.29 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005664/1.545, allocations: 1.755 MB / 0.7295 GB, free: 10.53 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2254/1.77, allocations: 31.65 MB / 0.7604 GB, free: 149.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007687/1.778, allocations: 0.5251 MB / 0.7609 GB, free: 149.7 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001473/1.779, allocations: 471.3 kB / 0.7614 GB, free: 149.7 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.005764/1.785, allocations: 3.475 MB / 0.7648 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/1.786, allocations: 0.6597 MB / 0.7654 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02203/1.808, allocations: 11.48 MB / 0.7766 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.837e-05/1.808, allocations: 34.06 kB / 0.7767 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.281e-05/1.809, allocations: 19.47 kB / 0.7767 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.728e-05/1.809, allocations: 18.56 kB / 0.7767 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04277/1.851, allocations: 24.75 MB / 0.8009 GB, free: 128.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-05/1.851, allocations: 7.984 kB / 0.8009 GB, free: 128.7 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/1.853, allocations: 419 kB / 0.8013 GB, free: 128.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01526/1.869, allocations: 5.39 MB / 0.8065 GB, free: 122.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006601/1.869, allocations: 63.94 kB / 0.8066 GB, free: 122.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03228/1.902, allocations: 30.33 MB / 0.8362 GB, free: 92.38 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-05/1.902, allocations: 11.81 kB / 0.8362 GB, free: 92.38 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02569/1.927, allocations: 16.46 MB / 0.8523 GB, free: 76.02 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003736/1.931, allocations: 1.314 MB / 0.8536 GB, free: 74.69 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001423/1.933, allocations: 63.61 kB / 0.8537 GB, free: 74.63 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003582/1.936, allocations: 263.6 kB / 0.8539 GB, free: 74.37 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007482/1.937, allocations: 246.4 kB / 0.8541 GB, free: 74.13 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002454/1.937, allocations: 88 kB / 0.8542 GB, free: 74.05 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006459/1.944, allocations: 4.688 MB / 0.8588 GB, free: 69.4 MB / 0.4982 GB Notification: Performance of sort global known variables: time 6.02e-07/1.944, allocations: 0 / 0.8588 GB, free: 69.4 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008347/1.952, allocations: 1.988 MB / 0.8607 GB, free: 67.42 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.0261/1.978, allocations: 17.15 MB / 0.8775 GB, free: 50.14 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01447/1.993, allocations: 10.51 MB / 0.8878 GB, free: 39.61 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/1.993, allocations: 7.938 kB / 0.8878 GB, free: 39.6 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007096/2, allocations: 4.682 MB / 0.8923 GB, free: 34.88 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006448/2.006, allocations: 1.086 MB / 0.8934 GB, free: 33.82 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3352/2.342, allocations: 91.83 MB / 0.9831 GB, free: 144.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005752/2.347, allocations: 5.553 MB / 0.9885 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005606/2.353, allocations: 2.63 MB / 0.9911 GB, free: 136.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003886/2.357, allocations: 3.713 MB / 0.9947 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.262e-06/2.357, allocations: 4 kB / 0.9947 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4285/2.785, allocations: 160.8 MB / 1.152 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.81/42.59, allocations: 18.86 kB / 1.152 GB, free: 158.9 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 & /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