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.001146/0.001146, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 64.14 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08222/0.08347, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.1667/0.2502, allocations: 19.36 MB / 376.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.261, allocations: 5.973 MB / 382.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004006/0.2651, allocations: 157.5 kB / 383.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01053/0.2757, allocations: 5.837 MB / 388.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009508/0.2852, allocations: 3.301 MB / 392.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003328/0.2886, allocations: 1.569 MB / 393.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01627/0.3049, allocations: 12.67 MB / 406.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008335/0.3133, allocations: 7.663 MB / 414.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005229/0.3185, allocations: 3.544 MB / 417.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005834/0.3244, allocations: 4.725 MB / 422.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.3262, allocations: 0.7148 MB / 423.1 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003626/0.3298, allocations: 1.662 MB / 424.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003883/0.3337, allocations: 4.162 MB / 428.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005894/0.3396, allocations: 4.741 MB / 433.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.3529, allocations: 13.97 MB / 447.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3529, allocations: 0 / 447.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3529, allocations: 0 / 447.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003396/0.3533, allocations: 0 / 447.6 MB, free: 1.086 MB / 350.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.02853/0.3818, allocations: 10.31 MB / 457.9 MB, free: 6.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.3819, allocations: 8.031 kB / 458 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003334/0.3852, allocations: 1.14 MB / 459.1 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2981/0.6834, allocations: 24.25 MB / 483.3 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/0.7025, allocations: 8.938 MB / 492.3 MB, free: 4.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003523/0.7028, allocations: 427.4 kB / 492.7 MB, free: 3.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001856/0.7047, allocations: 0.5892 MB / 493.3 MB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0302/0.7349, allocations: 16.17 MB / 0.4975 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000375/0.7353, allocations: 99.11 kB / 0.4976 GB, free: 1.875 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.737, allocations: 267.8 kB / 0.4979 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004404/0.7414, allocations: 2.76 MB / 0.5006 GB, free: 14.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02683/0.7682, allocations: 12.87 MB / 0.5131 GB, free: 1.961 MB / 430.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.3779/1.146, allocations: 66.43 MB / 0.578 GB, free: 91.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.018/1.164, allocations: 7.61 MB / 0.5854 GB, free: 89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004795/1.169, allocations: 4.204 MB / 0.5895 GB, free: 87.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01717/1.186, allocations: 11.69 MB / 0.6009 GB, free: 80.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/1.186, allocations: 63.16 kB / 0.601 GB, free: 80.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 6.332e-06/1.186, allocations: 0 / 0.601 GB, free: 80.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1669/1.353, allocations: 47.38 MB / 0.6473 GB, free: 36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/1.353, allocations: 394.1 kB / 0.6476 GB, free: 35.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01298/1.366, allocations: 7.15 MB / 0.6546 GB, free: 28.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001248/1.368, allocations: 85.64 kB / 0.6547 GB, free: 28.31 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004409/1.372, allocations: 5.167 MB / 0.6598 GB, free: 23.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00187/1.374, allocations: 1.255 MB / 0.661 GB, free: 21.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004646/1.379, allocations: 1.642 MB / 0.6626 GB, free: 20.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.24e-05/1.379, allocations: 301.1 kB / 0.6629 GB, free: 19.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005248/1.384, allocations: 3.955 MB / 0.6667 GB, free: 15.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006789/1.391, allocations: 8.587 MB / 0.6751 GB, free: 5.109 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/1.405, allocations: 13.48 MB / 0.6883 GB, free: 5.348 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001208/1.405, allocations: 48 kB / 0.6883 GB, free: 5.301 MB / 462.1 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03612/1.442, allocations: 17.18 MB / 0.7051 GB, free: 4.059 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002439/1.442, allocations: 72 kB / 0.7052 GB, free: 3.988 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003166/1.442, allocations: 160 kB / 0.7053 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1984/1.641, allocations: 5.775 MB / 0.711 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006453/1.647, allocations: 1.751 MB / 0.7127 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0386/1.686, allocations: 31.67 MB / 0.7436 GB, free: 139.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006822/1.693, allocations: 0.5154 MB / 0.7441 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.694, allocations: 484.5 kB / 0.7446 GB, free: 139 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 (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.004619/1.698, allocations: 3.454 MB / 0.7479 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.7, allocations: 0.6523 MB / 0.7486 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02142/1.721, allocations: 11.47 MB / 0.7598 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.407e-05/1.721, allocations: 36 kB / 0.7598 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.721, allocations: 20 kB / 0.7598 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.242e-05/1.721, allocations: 19.66 kB / 0.7599 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03736/1.758, allocations: 24.87 MB / 0.7841 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.106e-05/1.759, allocations: 8 kB / 0.7841 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/1.76, allocations: 415.4 kB / 0.7845 GB, free: 105.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01545/1.776, allocations: 5.384 MB / 0.7898 GB, free: 99.98 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006149/1.777, allocations: 69.23 kB / 0.7899 GB, free: 99.92 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03264/1.809, allocations: 30.35 MB / 0.8195 GB, free: 69.42 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/1.809, allocations: 7.938 kB / 0.8195 GB, free: 69.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02724/1.837, allocations: 16.48 MB / 0.8356 GB, free: 52.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002158/1.839, allocations: 0.6861 MB / 0.8363 GB, free: 52.27 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001903/1.841, allocations: 64 kB / 0.8363 GB, free: 52.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004252/1.845, allocations: 267.3 kB / 0.8366 GB, free: 51.95 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001214/1.846, allocations: 242.6 kB / 0.8368 GB, free: 51.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005623/1.847, allocations: 88 kB / 0.8369 GB, free: 51.62 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006748/1.854, allocations: 4.616 MB / 0.8414 GB, free: 47.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.854, allocations: 0 / 0.8414 GB, free: 47.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00771/1.861, allocations: 1.958 MB / 0.8433 GB, free: 45.09 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.02723/1.888, allocations: 17.18 MB / 0.8601 GB, free: 27.71 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02072/1.909, allocations: 13.31 MB / 0.8731 GB, free: 14.39 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.909, allocations: 0 / 0.8731 GB, free: 14.39 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007783/1.917, allocations: 4.686 MB / 0.8777 GB, free: 9.648 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007193/1.924, allocations: 1.092 MB / 0.8787 GB, free: 8.57 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/2.219, allocations: 114 MB / 0.9901 GB, free: 58.53 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006618/2.225, allocations: 5.525 MB / 0.9955 GB, free: 52.99 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005876/2.231, allocations: 2.62 MB / 0.998 GB, free: 50.36 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003925/2.235, allocations: 3.733 MB / 1.002 GB, free: 46.63 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/2.235, allocations: 0 / 1.002 GB, free: 46.63 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.833/5.068, allocations: 162.2 MB / 1.16 GB, free: 86.75 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.54/25.61, allocations: 12.28 kB / 1.16 GB, free: 86.74 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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