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.0008647/0.0008647, allocations: 98.97 kB / 17.36 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009692/0.0009691, allocations: 203.7 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 227.7 MB / 246.8 MB, free: 9.676 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002111/0.000211, allocations: 4 kB / 307.8 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07791/0.07814, allocations: 51.52 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.217/0.2952, allocations: 100.3 MB / 459.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03777/0.333, allocations: 19.57 MB / 479.2 MB, free: 2.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.018/0.351, allocations: 470.8 kB / 479.6 MB, free: 2.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002385/0.3535, allocations: 0.6995 MB / 480.3 MB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007211/0.3607, allocations: 3.149 MB / 483.5 MB, free: 14.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002762/0.3635, allocations: 1.447 MB / 484.9 MB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01721/0.3807, allocations: 17.63 MB / 0.4908 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01275/0.3935, allocations: 10.16 MB / 0.5007 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004312/0.3978, allocations: 2.681 MB / 0.5033 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005715/0.4035, allocations: 4.435 MB / 0.5077 GB, free: 9.688 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001245/0.4048, allocations: 283.9 kB / 0.5079 GB, free: 9.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002898/0.4077, allocations: 1.283 MB / 0.5092 GB, free: 8.125 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003624/0.4113, allocations: 3.677 MB / 0.5128 GB, free: 4.438 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004171/0.4155, allocations: 4.074 MB / 0.5168 GB, free: 340 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.4261, allocations: 13.33 MB / 0.5298 GB, free: 2.953 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.4261, allocations: 7.938 kB / 0.5298 GB, free: 2.945 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4261, allocations: 0 / 0.5298 GB, free: 2.945 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002785/0.4264, allocations: 4 kB / 0.5298 GB, free: 2.941 MB / 446.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.208/0.6344, allocations: 8.55 MB / 0.5381 GB, free: 44.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.6345, allocations: 9.5 kB / 0.5382 GB, free: 44.98 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002928/0.6374, allocations: 1.147 MB / 0.5393 GB, free: 44.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2737/0.9111, allocations: 24.8 MB / 0.5635 GB, free: 38.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01551/0.9266, allocations: 8.92 MB / 0.5722 GB, free: 32.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.9269, allocations: 426.6 kB / 0.5726 GB, free: 31.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008363/0.9277, allocations: 0.5883 MB / 0.5732 GB, free: 31.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01962/0.9473, allocations: 16.23 MB / 0.589 GB, free: 18.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/0.9475, allocations: 96.97 kB / 0.5891 GB, free: 18.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000538/0.9481, allocations: 265.8 kB / 0.5894 GB, free: 18.56 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003222/0.9513, allocations: 2.768 MB / 0.5921 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01874/0.9701, allocations: 12.93 MB / 0.6047 GB, free: 3.289 MB / 446.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.06933/1.039, allocations: 66.48 MB / 0.6696 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0181/1.058, allocations: 7.638 MB / 0.6771 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005054/1.063, allocations: 4.207 MB / 0.6812 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01705/1.08, allocations: 11.69 MB / 0.6926 GB, free: 7.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/1.08, allocations: 64.56 kB / 0.6927 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=280): time 4.769e-06/1.08, allocations: 0 / 0.6927 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.4391/1.519, allocations: 48.25 MB / 0.7398 GB, free: 257.4 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/1.519, allocations: 402.2 kB / 0.7402 GB, free: 256.9 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009576/1.529, allocations: 7.152 MB / 0.7472 GB, free: 254.7 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0006381/1.529, allocations: 78.66 kB / 0.7472 GB, free: 254.6 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002508/1.532, allocations: 5.169 MB / 0.7523 GB, free: 251.2 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001186/1.533, allocations: 1.245 MB / 0.7535 GB, free: 250.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008183/1.534, allocations: 0.7033 MB / 0.7542 GB, free: 250 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.674e-05/1.534, allocations: 307.6 kB / 0.7545 GB, free: 249.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004336/1.538, allocations: 3.957 MB / 0.7583 GB, free: 248.2 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005577/1.544, allocations: 8.587 MB / 0.7667 GB, free: 240.6 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.555, allocations: 13.49 MB / 0.7799 GB, free: 230.6 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.06e-05/1.555, allocations: 50.38 kB / 0.7799 GB, free: 230.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02863/1.583, allocations: 17.18 MB / 0.7967 GB, free: 216.6 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 7.436e-05/1.583, allocations: 75.94 kB / 0.7968 GB, free: 216.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/1.584, allocations: 160 kB / 0.797 GB, free: 216.3 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01545/1.599, allocations: 5.778 MB / 0.8026 GB, free: 210.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004759/1.604, allocations: 1.754 MB / 0.8043 GB, free: 208.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03102/1.635, allocations: 29.74 MB / 0.8333 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006756/1.642, allocations: 0.5266 MB / 0.8339 GB, free: 178.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008712/1.643, allocations: 472.6 kB / 0.8343 GB, free: 177.7 MB / 0.5607 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 (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.004478/1.647, allocations: 3.463 MB / 0.8377 GB, free: 174.2 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.648, allocations: 0.6524 MB / 0.8383 GB, free: 173.5 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02069/1.669, allocations: 11.48 MB / 0.8495 GB, free: 162 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.22e-05/1.669, allocations: 36.94 kB / 0.8496 GB, free: 161.9 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.553e-05/1.669, allocations: 16 kB / 0.8496 GB, free: 161.9 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.572e-05/1.669, allocations: 26.06 kB / 0.8496 GB, free: 161.9 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0352/1.704, allocations: 24.86 MB / 0.8739 GB, free: 136.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.249e-05/1.704, allocations: 16.06 kB / 0.8739 GB, free: 136.6 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/1.706, allocations: 415.3 kB / 0.8743 GB, free: 136.1 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01467/1.721, allocations: 5.408 MB / 0.8796 GB, free: 130.7 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00034/1.721, allocations: 67.98 kB / 0.8797 GB, free: 130.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02922/1.75, allocations: 28.48 MB / 0.9075 GB, free: 101.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.75, allocations: 12 kB / 0.9075 GB, free: 101.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02496/1.775, allocations: 16.49 MB / 0.9236 GB, free: 85.08 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.777, allocations: 0.6839 MB / 0.9243 GB, free: 84.37 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008225/1.778, allocations: 67.98 kB / 0.9243 GB, free: 84.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/1.781, allocations: 263.6 kB / 0.9246 GB, free: 84.05 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007213/1.782, allocations: 244.5 kB / 0.9248 GB, free: 83.81 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002217/1.782, allocations: 91.98 kB / 0.9249 GB, free: 83.72 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00502/1.787, allocations: 4.616 MB / 0.9294 GB, free: 79.14 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.2e-07/1.787, allocations: 0 / 0.9294 GB, free: 79.14 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006116/1.793, allocations: 1.954 MB / 0.9313 GB, free: 77.19 MB / 0.5607 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.02428/1.817, allocations: 17.18 MB / 0.9481 GB, free: 59.8 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01293/1.83, allocations: 10.46 MB / 0.9583 GB, free: 49.3 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.83, allocations: 4 kB / 0.9583 GB, free: 49.3 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006171/1.836, allocations: 4.691 MB / 0.9629 GB, free: 44.55 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01057/1.847, allocations: 1.022 MB / 0.9639 GB, free: 43.54 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3008/2.148, allocations: 117.3 MB / 1.078 GB, free: 169.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005927/2.154, allocations: 5.525 MB / 1.084 GB, free: 163.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005421/2.159, allocations: 2.622 MB / 1.086 GB, free: 161.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003217/2.162, allocations: 3.737 MB / 1.09 GB, free: 157.4 MB / 0.5607 GB Notification: Performance of SimCode: time 7.31e-07/2.162, allocations: 0 / 1.09 GB, free: 157.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1631/2.326, allocations: 155.9 MB / 1.242 GB, free: 2.195 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/2.326, allocations: 238.9 kB / 1.243 GB, free: 1.941 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.59/6.916, allocations: 0 / 1.243 GB, free: 1.941 MB / 0.5607 GB (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