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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 214 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 67.89 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2439, allocations: 53.42 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02209/0.266, allocations: 19.46 MB / 450.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01323/0.2792, allocations: 6.048 MB / 456.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003163/0.2824, allocations: 186.9 kB / 456.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.2936, allocations: 5.926 MB / 462.8 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008238/0.3018, allocations: 3.405 MB / 466.2 MB, free: 3.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003451/0.3053, allocations: 1.576 MB / 467.8 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01752/0.3228, allocations: 12.72 MB / 480.5 MB, free: 5.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008578/0.3314, allocations: 5.943 MB / 486.5 MB, free: 15.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00714/0.3385, allocations: 3.63 MB / 490.1 MB, free: 11.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008528/0.3471, allocations: 5.122 MB / 495.2 MB, free: 6.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002453/0.3495, allocations: 0.7148 MB / 495.9 MB, free: 5.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004387/0.3539, allocations: 1.705 MB / 497.6 MB, free: 3.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006765/0.3607, allocations: 4.356 MB / 0.4902 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009321/0.37, allocations: 4.744 MB / 0.4949 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01882/0.3888, allocations: 14.35 MB / 0.5089 GB, free: 12.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3888, allocations: 0 / 0.5089 GB, free: 12.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3888, allocations: 0 / 0.5089 GB, free: 12.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003998/0.3892, allocations: 0 / 0.5089 GB, free: 12.45 MB / 430.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.02877/0.418, allocations: 10.49 MB / 0.5191 GB, free: 1.871 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.418, allocations: 15.97 kB / 0.5191 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00287/0.4209, allocations: 1.14 MB / 0.5203 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.619/1.04, allocations: 24.3 MB / 0.544 GB, free: 93.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.058, allocations: 9.042 MB / 0.5528 GB, free: 89.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/1.058, allocations: 429.2 kB / 0.5532 GB, free: 89.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001797/1.06, allocations: 0.5818 MB / 0.5538 GB, free: 89.01 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02277/1.082, allocations: 16.17 MB / 0.5696 GB, free: 71.99 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002447/1.083, allocations: 103.2 kB / 0.5697 GB, free: 71.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006885/1.083, allocations: 267.2 kB / 0.5699 GB, free: 71.68 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003227/1.086, allocations: 2.76 MB / 0.5726 GB, free: 68.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02085/1.107, allocations: 12.87 MB / 0.5852 GB, free: 56.03 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.06513/1.172, allocations: 66.28 MB / 0.6499 GB, free: 4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01906/1.192, allocations: 6.912 MB / 0.6567 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005675/1.197, allocations: 3.935 MB / 0.6605 GB, free: 9.125 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0199/1.217, allocations: 11.02 MB / 0.6713 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/1.217, allocations: 64.5 kB / 0.6713 GB, free: 14.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 4.859e-06/1.217, allocations: 0 / 0.6713 GB, free: 14.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.174/1.391, allocations: 47.59 MB / 0.7178 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002481/1.391, allocations: 398.1 kB / 0.7182 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/1.404, allocations: 7.163 MB / 0.7252 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007014/1.405, allocations: 77.7 kB / 0.7253 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004634/1.409, allocations: 5.347 MB / 0.7305 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001796/1.411, allocations: 1.302 MB / 0.7318 GB, free: 424 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002606/1.414, allocations: 1.656 MB / 0.7334 GB, free: 14.74 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.414, allocations: 308.3 kB / 0.7337 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006187/1.42, allocations: 3.959 MB / 0.7375 GB, free: 10.47 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2236/1.643, allocations: 8.584 MB / 0.7459 GB, free: 181.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01387/1.657, allocations: 13.49 MB / 0.7591 GB, free: 173.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001136/1.657, allocations: 45 kB / 0.7591 GB, free: 173.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03067/1.688, allocations: 17.13 MB / 0.7759 GB, free: 167.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.523e-05/1.688, allocations: 80.09 kB / 0.7759 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001316/1.688, allocations: 163.4 kB / 0.7761 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01516/1.704, allocations: 5.772 MB / 0.7817 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005105/1.709, allocations: 1.752 MB / 0.7834 GB, free: 165.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03413/1.743, allocations: 31.36 MB / 0.8141 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007786/1.751, allocations: 0.5154 MB / 0.8146 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.752, allocations: 476.8 kB / 0.815 GB, free: 133.7 MB / 0.545 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.005166/1.757, allocations: 3.456 MB / 0.8184 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/1.759, allocations: 0.6889 MB / 0.8191 GB, free: 130 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02013/1.779, allocations: 11.41 MB / 0.8302 GB, free: 118.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.933e-05/1.779, allocations: 32 kB / 0.8302 GB, free: 118.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.7e-05/1.779, allocations: 24 kB / 0.8303 GB, free: 118.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.597e-05/1.779, allocations: 11.95 kB / 0.8303 GB, free: 118.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04051/1.819, allocations: 24.65 MB / 0.8543 GB, free: 93.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.461e-05/1.819, allocations: 7.984 kB / 0.8544 GB, free: 93.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001846/1.821, allocations: 415.3 kB / 0.8548 GB, free: 93.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01404/1.835, allocations: 5.369 MB / 0.86 GB, free: 87.67 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007101/1.836, allocations: 67.44 kB / 0.8601 GB, free: 87.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0317/1.868, allocations: 30.05 MB / 0.8894 GB, free: 57.38 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/1.868, allocations: 8 kB / 0.8894 GB, free: 57.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02491/1.893, allocations: 16.45 MB / 0.9055 GB, free: 40.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00192/1.895, allocations: 0.6424 MB / 0.9061 GB, free: 40.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/1.896, allocations: 67.03 kB / 0.9062 GB, free: 40.03 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003119/1.899, allocations: 259.6 kB / 0.9064 GB, free: 39.77 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007437/1.9, allocations: 254.5 kB / 0.9067 GB, free: 39.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002325/1.9, allocations: 91.98 kB / 0.9067 GB, free: 39.43 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005869/1.906, allocations: 4.612 MB / 0.9112 GB, free: 34.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/1.906, allocations: 0 / 0.9112 GB, free: 34.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007818/1.914, allocations: 1.955 MB / 0.9132 GB, free: 32.91 MB / 0.545 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.02521/1.939, allocations: 17.15 MB / 0.9299 GB, free: 15.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01394/1.953, allocations: 10.1 MB / 0.9398 GB, free: 5.426 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/1.953, allocations: 4 kB / 0.9398 GB, free: 5.422 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006588/1.959, allocations: 4.369 MB / 0.944 GB, free: 1.004 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005832/1.965, allocations: 1.086 MB / 0.9451 GB, free: 15.93 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3137/2.279, allocations: 91.61 MB / 1.035 GB, free: 130.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006244/2.285, allocations: 5.534 MB / 1.04 GB, free: 124.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005147/2.29, allocations: 2.618 MB / 1.043 GB, free: 122 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003946/2.294, allocations: 3.739 MB / 1.046 GB, free: 118.2 MB / 0.5607 GB Notification: Performance of SimCode: time 1.142e-06/2.294, allocations: 0 / 1.046 GB, free: 118.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4262/2.72, allocations: 162.3 MB / 1.205 GB, free: 156.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.61/43.33, allocations: 6.219 kB / 1.205 GB, free: 156.1 MB / 0.5607 GB " [Timeout remaining time 616] (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 --stepSize=0.0009996 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 47.58073609601706]