Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 106.2 kB / 18.25 MB, free: 4.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 195.3 kB / 19.19 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.1 MB / 225 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 47.94 kB / 281.3 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.09379, allocations: 46.63 MB / 328 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.0243/0.1181, allocations: 23.46 MB / 351.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.1348, allocations: 7.088 MB / 358.5 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005612/0.1405, allocations: 179.4 kB / 358.7 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01584/0.1563, allocations: 7.933 MB / 366.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01067/0.1671, allocations: 3.595 MB / 370.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005495/0.1726, allocations: 2.016 MB / 372.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2119/0.3846, allocations: 12.25 MB / 384.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01602/0.4006, allocations: 10.48 MB / 394.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008928/0.4096, allocations: 4.276 MB / 399.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008901/0.4185, allocations: 5.723 MB / 404.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004077/0.4227, allocations: 1.001 MB / 405.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00699/0.4297, allocations: 2.152 MB / 408.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007663/0.4374, allocations: 5.054 MB / 413.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01144/0.4488, allocations: 5.427 MB / 418.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.024/0.4729, allocations: 16.96 MB / 435.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.4729, allocations: 0 / 435.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4729, allocations: 0 / 435.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000688/0.4736, allocations: 0 / 435.5 MB, free: 4.02 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.0363/0.5099, allocations: 11.24 MB / 446.8 MB, free: 8.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.51, allocations: 11.89 kB / 446.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0476/0.5576, allocations: 5.417 MB / 452.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02269/0.5804, allocations: 9.156 MB / 461.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006189/0.581, allocations: 0.5169 MB / 461.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00372/0.5848, allocations: 0.7299 MB / 462.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04852/0.6333, allocations: 19.51 MB / 482.1 MB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005929/0.634, allocations: 97.59 kB / 482.2 MB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003602/0.6376, allocations: 331.2 kB / 482.5 MB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00537/0.643, allocations: 2.812 MB / 485.4 MB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04025/0.6833, allocations: 16.25 MB / 0.4899 GB, free: 1.941 MB / 398.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.4661/1.149, allocations: 74.57 MB / 0.5627 GB, free: 110.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02267/1.172, allocations: 8.474 MB / 0.5709 GB, free: 109.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006134/1.178, allocations: 4.763 MB / 0.5756 GB, free: 108.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02322/1.202, allocations: 15.4 MB / 0.5906 GB, free: 100.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.93e-05/1.202, allocations: 74.12 kB / 0.5907 GB, free: 100.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 6.773e-06/1.202, allocations: 0 / 0.5907 GB, free: 100.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=419): time 0.1636/1.365, allocations: 50.46 MB / 0.64 GB, free: 57.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/1.366, allocations: 414.3 kB / 0.6404 GB, free: 57.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01141/1.377, allocations: 7.643 MB / 0.6478 GB, free: 49.55 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001156/1.378, allocations: 91.73 kB / 0.6479 GB, free: 49.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003303/1.381, allocations: 5.617 MB / 0.6534 GB, free: 43.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002036/1.383, allocations: 1.524 MB / 0.6549 GB, free: 42.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003282/1.387, allocations: 2.089 MB / 0.6569 GB, free: 40.22 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.495e-05/1.387, allocations: 305.1 kB / 0.6572 GB, free: 39.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006405/1.393, allocations: 5.119 MB / 0.6622 GB, free: 34.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00914/1.402, allocations: 10.2 MB / 0.6722 GB, free: 22.24 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01735/1.42, allocations: 16.13 MB / 0.6879 GB, free: 3.781 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001492/1.42, allocations: 48 kB / 0.688 GB, free: 3.734 MB / 446.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.2393/1.659, allocations: 20.87 MB / 0.7084 GB, free: 143.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001713/1.66, allocations: 78.28 kB / 0.7084 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004218/1.66, allocations: 175.3 kB / 0.7086 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02155/1.682, allocations: 6.475 MB / 0.7149 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007517/1.689, allocations: 2.152 MB / 0.717 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04418/1.733, allocations: 33.59 MB / 0.7498 GB, free: 130.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008897/1.742, allocations: 0.6162 MB / 0.7504 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002019/1.744, allocations: 0.5297 MB / 0.751 GB, free: 129.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1180): * Single equations (assignments): 1175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,124,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007064/1.751, allocations: 4.103 MB / 0.755 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/1.753, allocations: 0.6944 MB / 0.7556 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02651/1.779, allocations: 13.84 MB / 0.7692 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.949e-05/1.78, allocations: 40 kB / 0.7692 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.295e-05/1.78, allocations: 35.48 kB / 0.7692 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.854e-05/1.78, allocations: 19.94 kB / 0.7693 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04919/1.829, allocations: 27.17 MB / 0.7958 GB, free: 90.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.592e-05/1.829, allocations: 8 kB / 0.7958 GB, free: 90.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/1.832, allocations: 0.546 MB / 0.7963 GB, free: 89.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01742/1.849, allocations: 5.978 MB / 0.8022 GB, free: 83.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000977/1.85, allocations: 77.66 kB / 0.8022 GB, free: 83.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03559/1.886, allocations: 30.28 MB / 0.8318 GB, free: 53.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/1.886, allocations: 11.94 kB / 0.8318 GB, free: 53.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03049/1.916, allocations: 20 MB / 0.8514 GB, free: 33.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003567/1.92, allocations: 1.538 MB / 0.8529 GB, free: 32.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001408/1.921, allocations: 72 kB / 0.8529 GB, free: 32.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003627/1.925, allocations: 313 kB / 0.8532 GB, free: 31.85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009261/1.926, allocations: 302.2 kB / 0.8535 GB, free: 31.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00031/1.926, allocations: 108 kB / 0.8536 GB, free: 31.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006239/1.932, allocations: 4.902 MB / 0.8584 GB, free: 26.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.932, allocations: 4 kB / 0.8584 GB, free: 26.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009524/1.942, allocations: 2.407 MB / 0.8608 GB, free: 24.19 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (292): * Single equations (assignments): 288 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,111,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001163/1.943, allocations: 282.1 kB / 0.861 GB, free: 23.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1786/2.122, allocations: 17.33 MB / 0.878 GB, free: 150.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/2.122, allocations: 2.156 kB / 0.878 GB, free: 150.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00844/2.13, allocations: 5.105 MB / 0.8829 GB, free: 149.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007308/2.138, allocations: 1.071 MB / 0.884 GB, free: 149.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04305/2.181, allocations: 23.42 MB / 0.9069 GB, free: 139.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009066/2.19, allocations: 6.299 MB / 0.913 GB, free: 137.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/2.192, allocations: 499.5 kB / 0.9135 GB, free: 137.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/2.192, allocations: 0 / 0.9135 GB, free: 137.2 MB / 462.1 MB Notification: Performance of Templates: time 0.4095/2.601, allocations: 163.6 MB / 1.073 GB, free: 128.2 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches