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.001081/0.001081, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2607, allocations: 50.55 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005116/0.2659, allocations: 4.587 MB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.2681, allocations: 1.395 MB / 415.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.2683, allocations: 23.88 kB / 415.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003668/0.2687, allocations: 178.2 kB / 415.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.269, allocations: 166.4 kB / 415.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.2697, allocations: 379.4 kB / 415.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008038/0.2705, allocations: 0.9899 MB / 416.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004877/0.271, allocations: 422.9 kB / 417.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003478/0.2714, allocations: 338.5 kB / 417.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.2717, allocations: 346 kB / 418 MB, free: 8.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.173e-05/0.2718, allocations: 72 kB / 418.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.272, allocations: 123.9 kB / 418.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.2721, allocations: 175.3 kB / 418.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.2724, allocations: 425.5 kB / 418.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008855/0.2733, allocations: 1.099 MB / 419.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2733, allocations: 3.938 kB / 419.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2733, allocations: 0 / 419.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.2733, allocations: 4 kB / 419.9 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.001366/0.2747, allocations: 1.142 MB / 421 MB, free: 5.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2747, allocations: 12.03 kB / 421.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.275, allocations: 110.7 kB / 421.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008248/0.2758, allocations: 0.6345 MB / 421.8 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.2758, allocations: 58 kB / 421.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.2759, allocations: 83.91 kB / 421.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.2772, allocations: 0.8481 MB / 422.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.716e-05/0.2772, allocations: 15.89 kB / 422.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.685e-05/0.2773, allocations: 32 kB / 422.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.2773, allocations: 24 kB / 422.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008596/0.2782, allocations: 467.3 kB / 423.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003538/0.2818, allocations: 4.377 MB / 427.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.2823, allocations: 302.3 kB / 428 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.2825, allocations: 145.5 kB / 428.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001753/0.2827, allocations: 174.6 kB / 428.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.2827, allocations: 42.94 kB / 428.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.144e-06/0.2827, allocations: 3.938 kB / 428.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003057/0.2858, allocations: 1.726 MB / 430.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.2859, allocations: 59.97 kB / 430.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005511/0.2865, allocations: 0.543 MB / 430.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.2865, allocations: 37.7 kB / 430.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/0.2868, allocations: 478.5 kB / 431.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.287, allocations: 212.9 kB / 431.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.2872, allocations: 138.5 kB / 431.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.2873, allocations: 378.8 kB / 431.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.2876, allocations: 165.9 kB / 432 MB, free: 10.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.288, allocations: 459.1 kB / 432.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007821/0.2888, allocations: 0.6673 MB / 433.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2889, allocations: 4 kB / 433.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001019/0.2899, allocations: 0.734 MB / 433.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.2899, allocations: 12 kB / 433.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.2899, allocations: 8 kB / 433.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.2901, allocations: 49.53 kB / 434 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000544/0.2907, allocations: 179.7 kB / 434.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.292, allocations: 1.697 MB / 435.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.2923, allocations: 28 kB / 435.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.2923, allocations: 36 kB / 435.9 MB, free: 5.824 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.0002984/0.2926, allocations: 237.4 kB / 436.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.954e-05/0.2927, allocations: 75.09 kB / 436.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.2928, allocations: 75.08 kB / 436.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2928, allocations: 7.938 kB / 436.3 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2929, allocations: 4.062 kB / 436.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2929, allocations: 3.984 kB / 436.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.2947, allocations: 1.413 MB / 437.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.2947, allocations: 3.938 kB / 437.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.2951, allocations: 115.9 kB / 437.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.61e-05/0.2952, allocations: 21.2 kB / 437.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.2953, allocations: 23.98 kB / 437.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008291/0.2961, allocations: 1.367 MB / 439.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.2961, allocations: 7.938 kB / 439.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009373/0.297, allocations: 0.7735 MB / 440 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2972, allocations: 144.1 kB / 440.2 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.2972, allocations: 12 kB / 440.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.2974, allocations: 23.98 kB / 440.2 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.055e-05/0.2975, allocations: 39.92 kB / 440.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.2975, allocations: 20 kB / 440.3 MB, free: 1.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003743/0.2979, allocations: 367.1 kB / 440.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2979, allocations: 0 / 440.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005839/0.2985, allocations: 140 kB / 440.7 MB, free: 0.6445 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.0001588/0.2987, allocations: 114.7 kB / 440.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009022/0.2996, allocations: 0.5872 MB / 441.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2996, allocations: 1.5 kB / 441.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.3, allocations: 307.1 kB / 441.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005945/0.3006, allocations: 98.94 kB / 441.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.3031, allocations: 1.845 MB / 443.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/0.3036, allocations: 0.9691 MB / 444.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.3038, allocations: 86.02 kB / 444.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3039, allocations: 63.61 kB / 444.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3039, allocations: 0 / 444.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01065/0.3146, allocations: 5.452 MB / 450.3 MB, free: 7.039 MB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches