Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.001379/0.001379, allocations: 75.69 kB / 21.7 MB, free: 2.844 MB / 18.57 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.001619/0.001619, allocations: 163.8 kB / 24.99 MB, free: 9.285 MB / 18.57 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 0.9919/0.9919, allocations: 177 MB / 205.2 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 273 MB, free: 1.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.369e-05/1.52e-05, allocations: 2.312 kB / 273 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003669/0.003684, allocations: 4.385 MB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.005287, allocations: 1.387 MB / 278.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002431/0.005531, allocations: 31.69 kB / 278.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.005807, allocations: 186.2 kB / 279 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.00603, allocations: 166.3 kB / 279.1 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.006545, allocations: 391.3 kB / 279.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006242/0.007169, allocations: 1.001 MB / 280.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.007474, allocations: 267.4 kB / 280.8 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.00791, allocations: 0.5066 MB / 281.3 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.008119, allocations: 235.1 kB / 281.5 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.129e-05/0.00819, allocations: 72 kB / 281.6 MB, free: 9.117 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.008327, allocations: 119.9 kB / 281.7 MB, free: 9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.587e-05/0.008413, allocations: 179.3 kB / 281.9 MB, free: 8.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.008578, allocations: 259.2 kB / 282.1 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000536/0.009114, allocations: 0.6806 MB / 282.8 MB, free: 7.887 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.009116, allocations: 8 kB / 282.8 MB, free: 7.879 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.009117, allocations: 0 / 282.8 MB, free: 7.879 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.009124, allocations: 0 / 282.8 MB, free: 7.879 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001215/0.01034, allocations: 1.193 MB / 284 MB, free: 6.645 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.01037, allocations: 8.031 kB / 284 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.01057, allocations: 183.2 kB / 284.2 MB, free: 6.457 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005792/0.01115, allocations: 0.6008 MB / 284.8 MB, free: 5.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.01118, allocations: 58 kB / 284.9 MB, free: 5.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.17e-05/0.01126, allocations: 83.95 kB / 284.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007579/0.01201, allocations: 0.8194 MB / 285.8 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.01204, allocations: 11.94 kB / 285.8 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.01209, allocations: 43.94 kB / 285.8 MB, free: 4.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.0121, allocations: 20 kB / 285.8 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.01256, allocations: 335.3 kB / 286.2 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.01528, allocations: 5.564 MB / 291.7 MB, free: 14.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.0156, allocations: 224.7 kB / 291.9 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.01571, allocations: 88.38 kB / 292 MB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.109e-05/0.01579, allocations: 16.38 kB / 292.1 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.01581, allocations: 41.77 kB / 292.1 MB, free: 14.14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 1.864e-06/0.01581, allocations: 0 / 292.1 MB, free: 14.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=57): time 0.001782/0.0176, allocations: 1.366 MB / 293.5 MB, free: 12.71 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.01762, allocations: 63.91 kB / 293.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.01801, allocations: 0.5658 MB / 294.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.01803, allocations: 33.7 kB / 294.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/0.01825, allocations: 0.5297 MB / 294.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.835e-05/0.01835, allocations: 222.1 kB / 294.9 MB, free: 11.26 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.01846, allocations: 144.3 kB / 295 MB, free: 11.11 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.01861, allocations: 0.5547 MB / 295.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.01874, allocations: 89.94 kB / 295.6 MB, free: 10.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.01903, allocations: 0.4931 MB / 296.1 MB, free: 9.781 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.01949, allocations: 0.6581 MB / 296.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.0195, allocations: 0 / 296.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0006372/0.02013, allocations: 0.6453 MB / 297.4 MB, free: 8.285 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.02015, allocations: 12 kB / 297.5 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.02016, allocations: 12.19 kB / 297.5 MB, free: 8.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001306/0.02029, allocations: 51.61 kB / 297.5 MB, free: 8.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/0.02088, allocations: 187.7 kB / 297.7 MB, free: 8.023 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009168/0.0218, allocations: 2.078 MB / 299.8 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.02194, allocations: 27.94 kB / 299.8 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.02197, allocations: 43.94 kB / 299.9 MB, free: 5.758 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * Array equations: 0 * 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 {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001742/0.02214, allocations: 212.3 kB / 300.1 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.02224, allocations: 95.47 kB / 300.2 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.538e-05/0.02233, allocations: 75.08 kB / 300.2 MB, free: 5.367 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.02233, allocations: 4 kB / 300.2 MB, free: 5.363 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.02234, allocations: 0 / 300.2 MB, free: 5.363 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.02235, allocations: 11.92 kB / 300.2 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.02371, allocations: 1.156 MB / 301.4 MB, free: 4.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.02371, allocations: 4 kB / 301.4 MB, free: 4.102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.02408, allocations: 115.8 kB / 301.5 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.544e-05/0.02415, allocations: 23.67 kB / 301.5 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.02417, allocations: 15.94 kB / 301.6 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007326/0.02491, allocations: 1.732 MB / 303.3 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.02491, allocations: 4 kB / 303.3 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007077/0.02562, allocations: 0.7088 MB / 304 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.02568, allocations: 67.5 kB / 304.1 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.546e-05/0.02572, allocations: 20.12 kB / 304.1 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.02588, allocations: 12 kB / 304.1 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.02594, allocations: 47.8 kB / 304.1 MB, free: 1.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.02597, allocations: 16 kB / 304.2 MB, free: 1.141 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002898/0.02626, allocations: 359 kB / 304.5 MB, free: 0.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02626, allocations: 0 / 304.5 MB, free: 0.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005446/0.0268, allocations: 144 kB / 304.6 MB, free: 0.6523 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003386/0.02714, allocations: 118 kB / 304.8 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.09469/0.1218, allocations: 0.5344 MB / 305.3 MB, free: 39.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.1218, allocations: 0.5938 kB / 305.3 MB, free: 39.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00039/0.1222, allocations: 321.3 kB / 305.6 MB, free: 39.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006061/0.1228, allocations: 99.31 kB / 305.7 MB, free: 39.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.1248, allocations: 1.66 MB / 307.4 MB, free: 38.8 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.1249, allocations: 163.5 kB / 307.5 MB, free: 38.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001804/0.1251, allocations: 88.03 kB / 307.6 MB, free: 38.71 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.463e-05/0.1252, allocations: 60.08 kB / 307.7 MB, free: 38.71 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1252, allocations: 0 / 307.7 MB, free: 38.71 MB / 282.7 MB Notification: Performance of Templates: time 0.009127/0.1343, allocations: 5.295 MB / 313 MB, free: 38.11 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.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: 2.894775103079155]