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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001472/0.001472, allocations: 111.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.693/1.693, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 59.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3254, allocations: 50.54 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.008579/0.334, allocations: 4.591 MB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003824/0.3379, allocations: 1.395 MB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009352/0.3389, allocations: 19.88 kB / 415.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006612/0.3396, allocations: 190.2 kB / 416.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006997/0.3403, allocations: 162.3 kB / 416.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.3416, allocations: 375.5 kB / 416.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.3434, allocations: 0.9782 MB / 417.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009263/0.3443, allocations: 422.9 kB / 418 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.3451, allocations: 334.5 kB / 418.4 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005282/0.3457, allocations: 346 kB / 418.7 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.3458, allocations: 72 kB / 418.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003349/0.3462, allocations: 127.8 kB / 418.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.3464, allocations: 171.3 kB / 419.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000511/0.3469, allocations: 429.5 kB / 419.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.3485, allocations: 1.102 MB / 420.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.3485, allocations: 0 / 420.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3485, allocations: 0 / 420.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.3486, allocations: 4 kB / 420.6 MB, free: 6.891 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002416/0.351, allocations: 1.142 MB / 421.7 MB, free: 5.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.351, allocations: 12.03 kB / 421.7 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003805/0.3514, allocations: 118.8 kB / 421.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.3529, allocations: 0.6306 MB / 422.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.518e-05/0.353, allocations: 58 kB / 422.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.3532, allocations: 83.91 kB / 422.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.3552, allocations: 0.852 MB / 423.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-05/0.3553, allocations: 7.906 kB / 423.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.065e-05/0.3554, allocations: 39.94 kB / 423.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/0.3555, allocations: 20 kB / 423.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.3569, allocations: 475.3 kB / 424 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00583/0.3628, allocations: 4.365 MB / 428.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009337/0.3637, allocations: 307.5 kB / 428.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003707/0.3641, allocations: 141.6 kB / 428.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.3644, allocations: 170.6 kB / 429 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.3645, allocations: 34.94 kB / 429 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 6.072e-06/0.3645, allocations: 0 / 429 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.004814/0.3693, allocations: 1.737 MB / 430.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.3694, allocations: 55.97 kB / 430.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009043/0.3703, allocations: 0.5469 MB / 431.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.3704, allocations: 29.7 kB / 431.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/0.3708, allocations: 482.5 kB / 431.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002325/0.3711, allocations: 208.9 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/0.3714, allocations: 146.5 kB / 432.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.3716, allocations: 382.7 kB / 432.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/0.3721, allocations: 165.9 kB / 432.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007315/0.3728, allocations: 447.2 kB / 433.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3742, allocations: 0.6634 MB / 433.8 MB, free: 8.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.3742, allocations: 8 kB / 433.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00187/0.3761, allocations: 0.7385 MB / 434.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.3761, allocations: 12 kB / 434.6 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.3762, allocations: 15.94 kB / 434.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002622/0.3765, allocations: 40.84 kB / 434.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009579/0.3774, allocations: 183.7 kB / 434.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.3795, allocations: 1.697 MB / 436.5 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006338/0.3801, allocations: 28 kB / 436.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.97e-05/0.3802, allocations: 36 kB / 436.6 MB, free: 5.859 MB / 350.1 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.000552/0.3808, allocations: 249.1 kB / 436.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.381, allocations: 71.09 kB / 436.9 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.3812, allocations: 71.08 kB / 437 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.3812, allocations: 8 kB / 437 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.3812, allocations: 0 / 437 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.3812, allocations: 3.984 kB / 437 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003004/0.3842, allocations: 1.41 MB / 438.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.3843, allocations: 8.062 kB / 438.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008051/0.3851, allocations: 111.9 kB / 438.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001295/0.3852, allocations: 24.84 kB / 438.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.841e-05/0.3853, allocations: 16 kB / 438.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/0.3867, allocations: 1.379 MB / 439.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3867, allocations: 0 / 439.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.3885, allocations: 0.7736 MB / 440.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.3887, allocations: 148 kB / 440.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.413e-05/0.3888, allocations: 12 kB / 440.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.3892, allocations: 16 kB / 440.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3893, allocations: 43.92 kB / 440.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.6e-05/0.3894, allocations: 20 kB / 440.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006595/0.3901, allocations: 363.1 kB / 441.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3901, allocations: 0 / 441.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001229/0.3913, allocations: 140 kB / 441.4 MB, free: 0.6914 MB / 350.1 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.0002096/0.3915, allocations: 119.1 kB / 441.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.3932, allocations: 0.5887 MB / 442.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.3932, allocations: 4.125 kB / 442.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.3939, allocations: 306.3 kB / 442.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.395, allocations: 103.5 kB / 442.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/0.3995, allocations: 1.893 MB / 444.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00079/0.4003, allocations: 0.9613 MB / 445.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.4006, allocations: 67.42 kB / 445.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4006, allocations: 4 kB / 445.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of Templates: time 0.02668/0.4273, allocations: 12.57 MB / 458 MB, free: 15.95 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches