Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001226/0.001226, allocations: 104.1 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.238/1.238, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 58.94 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08275/0.08417, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1731/0.2573, allocations: 20.42 MB / 378 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.2694, allocations: 6.198 MB / 384.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004009/0.2734, allocations: 165.8 kB / 384.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01015/0.2837, allocations: 6.327 MB / 390.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008421/0.2921, allocations: 3.39 MB / 394.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003772/0.2959, allocations: 1.661 MB / 395.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01808/0.314, allocations: 12.97 MB / 408.7 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01162/0.3257, allocations: 8.06 MB / 416.8 MB, free: 120 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007066/0.3328, allocations: 3.735 MB / 420.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007304/0.3401, allocations: 4.943 MB / 425.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002473/0.3426, allocations: 0.7461 MB / 426.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004729/0.3473, allocations: 1.69 MB / 427.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005503/0.3529, allocations: 4.318 MB / 432.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008866/0.3617, allocations: 4.939 MB / 437.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01855/0.3804, allocations: 14.48 MB / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.3804, allocations: 0 / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3804, allocations: 0 / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005436/0.381, allocations: 0 / 451.6 MB, free: 13.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02981/0.4108, allocations: 10.67 MB / 462.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.4109, allocations: 12.03 kB / 462.3 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003107/0.414, allocations: 1.193 MB / 463.5 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2916/0.7056, allocations: 24.28 MB / 487.8 MB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02026/0.7259, allocations: 9.119 MB / 496.9 MB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004504/0.7264, allocations: 448 kB / 497.3 MB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002312/0.7287, allocations: 0.6165 MB / 497.9 MB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03262/0.7613, allocations: 16.75 MB / 0.5026 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004548/0.7618, allocations: 95.11 kB / 0.5027 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00166/0.7635, allocations: 283.8 kB / 0.503 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004452/0.768, allocations: 2.851 MB / 0.5058 GB, free: 9.562 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02709/0.7951, allocations: 13.27 MB / 0.5187 GB, free: 12.27 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.3929/1.188, allocations: 68.33 MB / 0.5855 GB, free: 89.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01747/1.205, allocations: 7.881 MB / 0.5932 GB, free: 85.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004485/1.21, allocations: 4.319 MB / 0.5974 GB, free: 83.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01625/1.226, allocations: 12.06 MB / 0.6092 GB, free: 74.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/1.226, allocations: 64.56 kB / 0.6092 GB, free: 74.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 6.693e-06/1.226, allocations: 0 / 0.6092 GB, free: 74.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=359): time 0.1703/1.397, allocations: 49.79 MB / 0.6579 GB, free: 24.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/1.397, allocations: 398.2 kB / 0.6582 GB, free: 24.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007991/1.405, allocations: 7.303 MB / 0.6654 GB, free: 17.19 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007264/1.406, allocations: 81.7 kB / 0.6654 GB, free: 17.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002162/1.408, allocations: 5.355 MB / 0.6707 GB, free: 11.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001057/1.409, allocations: 1.305 MB / 0.6719 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001806/1.411, allocations: 1.69 MB / 0.6736 GB, free: 8.746 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.244e-05/1.411, allocations: 305.1 kB / 0.6739 GB, free: 8.445 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004274/1.415, allocations: 4.128 MB / 0.6779 GB, free: 4.309 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007089/1.422, allocations: 8.866 MB / 0.6866 GB, free: 9.109 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01603/1.438, allocations: 13.94 MB / 0.7002 GB, free: 8.848 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/1.438, allocations: 51.94 kB / 0.7002 GB, free: 8.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.1929/1.631, allocations: 17.86 MB / 0.7177 GB, free: 151.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.507e-05/1.631, allocations: 75.03 kB / 0.7178 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/1.631, allocations: 161.9 kB / 0.7179 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01638/1.648, allocations: 6.06 MB / 0.7238 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/1.653, allocations: 1.829 MB / 0.7256 GB, free: 150.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03489/1.688, allocations: 32.89 MB / 0.7577 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006283/1.695, allocations: 0.5427 MB / 0.7583 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009846/1.696, allocations: 487.3 kB / 0.7587 GB, free: 130.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (967): * Single equations (assignments): 961 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00436/1.7, allocations: 3.589 MB / 0.7622 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.701, allocations: 0.6711 MB / 0.7629 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0208/1.722, allocations: 12.08 MB / 0.7747 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.628e-05/1.722, allocations: 36 kB / 0.7747 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/1.722, allocations: 20 kB / 0.7747 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.863e-05/1.722, allocations: 15.94 kB / 0.7748 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03898/1.761, allocations: 26.02 MB / 0.8002 GB, free: 88.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.403e-05/1.761, allocations: 11.98 kB / 0.8002 GB, free: 88.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/1.763, allocations: 460 kB / 0.8006 GB, free: 87.69 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01578/1.779, allocations: 5.724 MB / 0.8062 GB, free: 81.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005884/1.779, allocations: 67.52 kB / 0.8063 GB, free: 81.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03339/1.813, allocations: 31.7 MB / 0.8372 GB, free: 49.96 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/1.813, allocations: 8 kB / 0.8372 GB, free: 49.96 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02576/1.839, allocations: 17.39 MB / 0.8542 GB, free: 32.51 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/1.84, allocations: 0.6998 MB / 0.8549 GB, free: 31.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007595/1.841, allocations: 75.91 kB / 0.855 GB, free: 31.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00288/1.844, allocations: 275.6 kB / 0.8552 GB, free: 31.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007824/1.845, allocations: 254.7 kB / 0.8555 GB, free: 31.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/1.845, allocations: 95.98 kB / 0.8556 GB, free: 31.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004947/1.85, allocations: 4.702 MB / 0.8602 GB, free: 26.44 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.85, allocations: 0 / 0.8602 GB, free: 26.44 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006469/1.856, allocations: 2.041 MB / 0.8621 GB, free: 24.41 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * 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,90,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.02571/1.882, allocations: 18.11 MB / 0.8798 GB, free: 6.121 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1651/2.047, allocations: 14.21 MB / 0.8937 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/2.047, allocations: 1.469 kB / 0.8937 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009343/2.057, allocations: 4.952 MB / 0.8985 GB, free: 153.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008836/2.065, allocations: 1.125 MB / 0.8996 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1562/2.222, allocations: 118.8 MB / 1.016 GB, free: 33.17 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008251/2.23, allocations: 5.724 MB / 1.021 GB, free: 27.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006698/2.237, allocations: 2.721 MB / 1.024 GB, free: 24.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004019/2.241, allocations: 3.877 MB / 1.028 GB, free: 20.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.71e-07/2.241, allocations: 0 / 1.028 GB, free: 20.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.433/3.673, allocations: 169.2 MB / 1.193 GB, free: 58.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.21/22.88, allocations: 15.17 kB / 1.193 GB, free: 58.7 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches