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.001492/0.001493, allocations: 117.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 204.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2626, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006281/0.2689, allocations: 4.582 MB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003129/0.2721, allocations: 1.403 MB / 415.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007936/0.2729, allocations: 19.88 kB / 415.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006554/0.2736, allocations: 182.2 kB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000813/0.2745, allocations: 162.3 kB / 416.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.2756, allocations: 379.5 kB / 416.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.277, allocations: 0.986 MB / 417.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006074/0.2776, allocations: 414.9 kB / 418 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004887/0.2781, allocations: 342.5 kB / 418.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003505/0.2785, allocations: 346 kB / 418.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.466e-05/0.2786, allocations: 72 kB / 418.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002931/0.2789, allocations: 119.9 kB / 418.9 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.279, allocations: 175.3 kB / 419.1 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003242/0.2793, allocations: 425.5 kB / 419.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.2804, allocations: 1.106 MB / 420.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2804, allocations: 0 / 420.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2804, allocations: 0 / 420.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.2804, allocations: 0 / 420.6 MB, free: 6.855 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.001455/0.2819, allocations: 1.146 MB / 421.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.2819, allocations: 8.031 kB / 421.7 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/0.2822, allocations: 122.8 kB / 421.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008625/0.2831, allocations: 0.6228 MB / 422.5 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.2831, allocations: 62 kB / 422.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.2832, allocations: 83.91 kB / 422.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.2845, allocations: 0.852 MB / 423.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.67e-05/0.2846, allocations: 7.906 kB / 423.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-05/0.2846, allocations: 35.94 kB / 423.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2847, allocations: 20 kB / 423.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000833/0.2855, allocations: 471.3 kB / 424 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003693/0.2892, allocations: 4.373 MB / 428.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005958/0.2898, allocations: 307.5 kB / 428.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.2901, allocations: 141.6 kB / 428.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002013/0.2903, allocations: 170.6 kB / 429 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.2903, allocations: 34.94 kB / 429 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 4.518e-06/0.2903, allocations: 0 / 429 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003449/0.2938, allocations: 1.734 MB / 430.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.2939, allocations: 59.95 kB / 430.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006431/0.2945, allocations: 0.543 MB / 431.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.2946, allocations: 33.7 kB / 431.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/0.2949, allocations: 482.4 kB / 431.8 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/0.295, allocations: 212.9 kB / 432 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001774/0.2952, allocations: 146.5 kB / 432.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.2954, allocations: 386.7 kB / 432.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.2957, allocations: 157.9 kB / 432.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.2962, allocations: 455.2 kB / 433.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008363/0.297, allocations: 0.6673 MB / 433.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.2971, allocations: 4 kB / 433.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001196/0.2983, allocations: 0.7424 MB / 434.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.2983, allocations: 8 kB / 434.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.2983, allocations: 12 kB / 434.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.2985, allocations: 48.91 kB / 434.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.2991, allocations: 183.7 kB / 434.8 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3006, allocations: 1.689 MB / 436.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.3009, allocations: 24 kB / 436.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.83e-05/0.301, allocations: 40 kB / 436.6 MB, free: 5.82 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.0003324/0.3013, allocations: 233.5 kB / 436.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.3014, allocations: 75.14 kB / 436.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.3016, allocations: 79.08 kB / 437 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3016, allocations: 8 kB / 437 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3016, allocations: 0 / 437 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3016, allocations: 3.984 kB / 437 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.3036, allocations: 1.417 MB / 438.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3037, allocations: 4 kB / 438.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/0.3042, allocations: 116.2 kB / 438.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.64e-05/0.3043, allocations: 24.84 kB / 438.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.3043, allocations: 16 kB / 438.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009865/0.3053, allocations: 1.371 MB / 439.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3053, allocations: 0 / 439.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.3064, allocations: 0.7775 MB / 440.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.3066, allocations: 144 kB / 440.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.3066, allocations: 15.98 kB / 440.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.3069, allocations: 16 kB / 440.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.153e-05/0.307, allocations: 39.92 kB / 440.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.307, allocations: 24 kB / 440.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004172/0.3074, allocations: 363.1 kB / 441.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3074, allocations: 0 / 441.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006935/0.3081, allocations: 140 kB / 441.4 MB, free: 0.6484 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.000161/0.3083, allocations: 118.8 kB / 441.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3094, allocations: 0.5882 MB / 442.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.3095, allocations: 0.6875 kB / 442.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004127/0.3099, allocations: 310.3 kB / 442.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006587/0.3105, allocations: 103 kB / 442.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.3136, allocations: 1.88 MB / 444.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006123/0.3143, allocations: 0.9652 MB / 445.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.3144, allocations: 63.42 kB / 445.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3145, allocations: 4 kB / 445.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of Templates: time 0.01751/0.332, allocations: 12.46 MB / 457.9 MB, free: 28 kB / 366.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