Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.209/1.209, allocations: 205.1 MB / 223.7 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009187/0.0009186, allocations: 97.11 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008092/0.0008093, allocations: 47.91 kB / 327.2 MB, free: 312 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1933, allocations: 46.62 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004507/0.1978, allocations: 4.565 MB / 378.4 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.1998, allocations: 1.344 MB / 379.7 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003341/0.2002, allocations: 25.09 kB / 379.8 MB, free: 41.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.2005, allocations: 137.7 kB / 379.9 MB, free: 40.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.2008, allocations: 127.4 kB / 380 MB, free: 40.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.2013, allocations: 321 kB / 380.3 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006675/0.202, allocations: 0.9209 MB / 381.2 MB, free: 40.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004227/0.2025, allocations: 384 kB / 381.6 MB, free: 39.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00027/0.2027, allocations: 302 kB / 381.9 MB, free: 39.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.203, allocations: 331.4 kB / 382.2 MB, free: 39.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.312e-05/0.2031, allocations: 41.28 kB / 382.3 MB, free: 39.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.2032, allocations: 82.95 kB / 382.4 MB, free: 39.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.581e-05/0.2033, allocations: 139.8 kB / 382.5 MB, free: 39.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.2036, allocations: 395.6 kB / 382.9 MB, free: 38.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006194/0.2042, allocations: 0.9707 MB / 383.9 MB, free: 38.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2042, allocations: 3.984 kB / 383.9 MB, free: 38.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2042, allocations: 0 / 383.9 MB, free: 38.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.2042, allocations: 0 / 383.9 MB, free: 38.23 MB / 298.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.001282/0.2055, allocations: 1.136 MB / 385 MB, free: 37.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2056, allocations: 9.781 kB / 385 MB, free: 37.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.2057, allocations: 105.7 kB / 385.1 MB, free: 37.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006741/0.2064, allocations: 0.603 MB / 385.7 MB, free: 36.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.2064, allocations: 60.69 kB / 385.8 MB, free: 36.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-05/0.2065, allocations: 76.34 kB / 385.8 MB, free: 36.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000989/0.2075, allocations: 0.8484 MB / 386.7 MB, free: 36.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/0.2076, allocations: 10.75 kB / 386.7 MB, free: 36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.678e-05/0.2076, allocations: 37.31 kB / 386.7 MB, free: 35.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.2076, allocations: 26.12 kB / 386.8 MB, free: 35.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007779/0.2084, allocations: 469.7 kB / 387.2 MB, free: 35.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.2108, allocations: 4.399 MB / 391.6 MB, free: 31.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004244/0.2112, allocations: 327.5 kB / 391.9 MB, free: 30.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.2114, allocations: 137.6 kB / 392.1 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001449/0.2116, allocations: 170.6 kB / 392.2 MB, free: 30.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.2116, allocations: 38.94 kB / 392.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.823e-06/0.2116, allocations: 0 / 392.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002388/0.214, allocations: 1.728 MB / 394 MB, free: 28.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.975e-05/0.214, allocations: 59.97 kB / 394.1 MB, free: 28.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000384/0.2144, allocations: 0.5429 MB / 394.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.2144, allocations: 33.7 kB / 394.6 MB, free: 28.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.2146, allocations: 478.4 kB / 395.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.828e-05/0.2147, allocations: 213 kB / 395.3 MB, free: 27.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.2148, allocations: 142.5 kB / 395.5 MB, free: 27.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.743e-05/0.2149, allocations: 390.7 kB / 395.8 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.2151, allocations: 157.9 kB / 396 MB, free: 26.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003014/0.2154, allocations: 451.2 kB / 396.4 MB, free: 26.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.216, allocations: 0.6712 MB / 397.1 MB, free: 25.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.216, allocations: 4 kB / 397.1 MB, free: 25.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0007847/0.2168, allocations: 0.7415 MB / 397.8 MB, free: 24.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.2168, allocations: 8.938 kB / 397.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.2168, allocations: 12 kB / 397.9 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001223/0.2169, allocations: 48.84 kB / 397.9 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.2174, allocations: 179.7 kB / 398.1 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007696/0.2182, allocations: 1.514 MB / 399.6 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.2184, allocations: 32 kB / 399.6 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.2185, allocations: 35.94 kB / 399.7 MB, free: 22.59 MB / 298.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.0001956/0.2187, allocations: 229.6 kB / 399.9 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.364e-05/0.2187, allocations: 67.16 kB / 400 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.2189, allocations: 75.08 kB / 400 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2189, allocations: 11.92 kB / 400 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2189, allocations: 4.062 kB / 400.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.2189, allocations: 0 / 400.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.2203, allocations: 1.435 MB / 401.5 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.2204, allocations: 8.062 kB / 401.5 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.2208, allocations: 115.9 kB / 401.6 MB, free: 20.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.804e-05/0.2208, allocations: 20.86 kB / 401.6 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.2209, allocations: 19.98 kB / 401.6 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004912/0.2214, allocations: 1.264 MB / 402.9 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.2214, allocations: 11.92 kB / 402.9 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003361/0.2247, allocations: 4.419 MB / 407.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.419e-05/0.2248, allocations: 144.3 kB / 407.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.2249, allocations: 23.92 kB / 407.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.2251, allocations: 8 kB / 407.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.019e-05/0.2251, allocations: 39.95 kB / 407.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.2252, allocations: 16 kB / 407.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002637/0.2254, allocations: 363.1 kB / 407.9 MB, free: 13.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2254, allocations: 0 / 407.9 MB, free: 13.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006526/0.2261, allocations: 187.9 kB / 408.1 MB, free: 13.56 MB / 298.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.0001017/0.2262, allocations: 115.2 kB / 408.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006886/0.2269, allocations: 0.5837 MB / 408.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2269, allocations: 0 / 408.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.2272, allocations: 328.2 kB / 409.1 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.2278, allocations: 91.09 kB / 409.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.2301, allocations: 2.687 MB / 411.9 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.2304, allocations: 0.9771 MB / 412.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.2306, allocations: 89.92 kB / 413 MB, free: 8.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2307, allocations: 59.42 kB / 413 MB, free: 8.488 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2307, allocations: 0 / 413 MB, free: 8.488 MB / 298.7 MB Notification: Performance of Templates: time 0.009569/0.2403, allocations: 5.781 MB / 418.8 MB, free: 2.727 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches