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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009885/0.0009885, allocations: 71.75 kB / 21.97 MB, free: 2.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 165.6 kB / 25.33 MB, free: 9.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8915/0.8915, allocations: 158.6 MB / 187.2 MB, free: 2.547 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 3.938 kB / 251 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.753e-05/2.906e-05, allocations: 2.312 kB / 251 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02394/0.02396, allocations: 18.92 MB / 270 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.03511, allocations: 5.939 MB / 275.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003728/0.03884, allocations: 190.9 kB / 276.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007375/0.04622, allocations: 6.316 MB / 282.4 MB, free: 4.109 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008081/0.0543, allocations: 3.592 MB / 286 MB, free: 0.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003387/0.05768, allocations: 1.821 MB / 287.8 MB, free: 14.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01338/0.07107, allocations: 13.27 MB / 301.1 MB, free: 1.383 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1396/0.2106, allocations: 7.763 MB / 308.8 MB, free: 20.1 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01321/0.2238, allocations: 5.605 MB / 314.5 MB, free: 20.1 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008258/0.2321, allocations: 5.791 MB / 320.2 MB, free: 20.1 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.2341, allocations: 0.7469 MB / 321 MB, free: 20.1 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003614/0.2378, allocations: 1.671 MB / 322.7 MB, free: 20.1 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004057/0.2418, allocations: 4.636 MB / 327.3 MB, free: 18.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004906/0.2467, allocations: 2.832 MB / 330.1 MB, free: 17.22 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.2587, allocations: 9.022 MB / 339.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.2587, allocations: 0 / 339.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2587, allocations: 0 / 339.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0004404/0.2592, allocations: 0 / 339.2 MB, free: 12.89 MB / 282.7 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.01703/0.2762, allocations: 10.67 MB / 349.8 MB, free: 2.703 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.2762, allocations: 11.98 kB / 349.8 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02905/0.3053, allocations: 6.197 MB / 356 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01857/0.3239, allocations: 7.094 MB / 363.1 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005655/0.3244, allocations: 422.1 kB / 363.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0032/0.3276, allocations: 0.5891 MB / 364.1 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02346/0.3511, allocations: 10.3 MB / 374.4 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003266/0.3514, allocations: 88.7 kB / 374.5 MB, free: 9.203 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008577/0.3523, allocations: 270.2 kB / 374.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002859/0.3551, allocations: 2.768 MB / 377.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/0.3694, allocations: 5.397 MB / 382.9 MB, free: 1.152 MB / 314.7 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.2169/0.5863, allocations: 70.02 MB / 453 MB, free: 75.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/0.5981, allocations: 4.925 MB / 457.9 MB, free: 75.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002375/0.6005, allocations: 1.383 MB / 459.3 MB, free: 75.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.6125, allocations: 7.455 MB / 466.7 MB, free: 74.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.875e-05/0.6126, allocations: 71.34 kB / 466.8 MB, free: 74.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 7.454e-06/0.6126, allocations: 0 / 466.8 MB, free: 74.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=340): time 0.08678/0.6994, allocations: 38.99 MB / 0.4939 GB, free: 52.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.6995, allocations: 398.1 kB / 0.4943 GB, free: 51.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007138/0.7066, allocations: 6.143 MB / 0.5003 GB, free: 45.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008028/0.7074, allocations: 77.7 kB / 0.5004 GB, free: 45.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002221/0.7096, allocations: 5.469 MB / 0.5057 GB, free: 39.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001305/0.7109, allocations: 1.348 MB / 0.507 GB, free: 38.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001903/0.7128, allocations: 1.946 MB / 0.5089 GB, free: 36.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.867e-05/0.7129, allocations: 484.7 kB / 0.5094 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/0.715, allocations: 1.529 MB / 0.5109 GB, free: 34.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003859/0.7189, allocations: 8.689 MB / 0.5194 GB, free: 22.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00789/0.7267, allocations: 10.96 MB / 0.5301 GB, free: 9.441 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/0.7269, allocations: 44 kB / 0.5301 GB, free: 9.398 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02174/0.7486, allocations: 12.3 MB / 0.5421 GB, free: 13.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.7487, allocations: 78.81 kB / 0.5422 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000191/0.7489, allocations: 160 kB / 0.5424 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01328/0.7622, allocations: 5.135 MB / 0.5474 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004361/0.7666, allocations: 1.934 MB / 0.5493 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/0.7872, allocations: 14.42 MB / 0.5633 GB, free: 6.992 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006904/0.7941, allocations: 0.7255 MB / 0.5641 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/0.7957, allocations: 0.4986 MB / 0.5645 GB, free: 5.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * 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 (1049): * Single equations (assignments): 1043 * 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%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.003459/0.7991, allocations: 0.8596 MB / 0.5654 GB, free: 4.895 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00172/0.8008, allocations: 0.7147 MB / 0.5661 GB, free: 4.176 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01349/0.8143, allocations: 7.314 MB / 0.5732 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-05/0.8144, allocations: 38.66 kB / 0.5733 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.941e-05/0.8144, allocations: 23.94 kB / 0.5733 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-05/0.8145, allocations: 17.91 kB / 0.5733 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0326/0.8471, allocations: 16.97 MB / 0.5899 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.585e-05/0.8471, allocations: 7.984 kB / 0.5899 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.8485, allocations: 423.3 kB / 0.5903 GB, free: 10.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01215/0.8606, allocations: 4.805 MB / 0.595 GB, free: 6.062 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007483/0.8614, allocations: 60 kB / 0.595 GB, free: 6.004 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1721/1.033, allocations: 13.66 MB / 0.6084 GB, free: 163.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/1.033, allocations: 11 kB / 0.6084 GB, free: 163.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01647/1.05, allocations: 9.035 MB / 0.6172 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003061/1.053, allocations: 1.318 MB / 0.6185 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009009/1.054, allocations: 62.16 kB / 0.6185 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002446/1.056, allocations: 433.5 kB / 0.619 GB, free: 162.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007435/1.057, allocations: 259.5 kB / 0.6192 GB, free: 162.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001929/1.057, allocations: 95.44 kB / 0.6193 GB, free: 162.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00416/1.061, allocations: 2.906 MB / 0.6221 GB, free: 162.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.061, allocations: 0 / 0.6221 GB, free: 162.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007712/1.069, allocations: 2.451 MB / 0.6245 GB, free: 162.1 MB / 442.7 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 (215): * Single equations (assignments): 209 * 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.0007717/1.07, allocations: 228.6 kB / 0.6247 GB, free: 162 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01041/1.08, allocations: 6.697 MB / 0.6313 GB, free: 161.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/1.08, allocations: 3.906 kB / 0.6313 GB, free: 161.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00434/1.085, allocations: 2.962 MB / 0.6342 GB, free: 160.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005134/1.09, allocations: 0.9507 MB / 0.6351 GB, free: 160.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02555/1.115, allocations: 15.69 MB / 0.6504 GB, free: 148.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/1.118, allocations: 2.352 MB / 0.6527 GB, free: 146.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004293/1.122, allocations: 2.153 MB / 0.6548 GB, free: 145.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/1.124, allocations: 392.4 kB / 0.6552 GB, free: 144.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.843e-06/1.124, allocations: 3.938 kB / 0.6552 GB, free: 144.8 MB / 442.7 MB Notification: Performance of Templates: time 0.1157/1.239, allocations: 97.15 MB / 0.7501 GB, free: 47.43 MB / 442.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.867036864161491]