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.0009805/0.0009805, allocations: 115.9 kB / 18.41 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 207.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 59.78 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09545, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005446/0.1009, allocations: 4.581 MB / 363.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.1033, allocations: 1.411 MB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.1036, allocations: 23.88 kB / 364.9 MB, free: 7.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003612/0.104, allocations: 170.2 kB / 365.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.1043, allocations: 170.3 kB / 365.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006895/0.105, allocations: 379.4 kB / 365.6 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009754/0.106, allocations: 0.9743 MB / 366.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00056/0.1066, allocations: 418.9 kB / 367 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003851/0.107, allocations: 334.5 kB / 367.3 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003333/0.1073, allocations: 346 kB / 367.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.934e-05/0.1074, allocations: 72 kB / 367.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.1076, allocations: 127.9 kB / 367.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1078, allocations: 171.3 kB / 368 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00031/0.1081, allocations: 429.5 kB / 368.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009097/0.109, allocations: 1.086 MB / 369.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.109, allocations: 0 / 369.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.109, allocations: 0 / 369.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.109, allocations: 0 / 369.5 MB, free: 2.625 MB / 302.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.001585/0.1106, allocations: 1.149 MB / 370.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.1107, allocations: 8.031 kB / 370.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.1109, allocations: 118.7 kB / 370.8 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009124/0.1118, allocations: 0.6266 MB / 371.4 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.755e-05/0.1119, allocations: 65.98 kB / 371.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.112, allocations: 76 kB / 371.6 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2068/0.3188, allocations: 0.8432 MB / 372.4 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.382e-05/0.319, allocations: 13.38 kB / 372.4 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.83e-05/0.3191, allocations: 32.56 kB / 372.5 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.702e-05/0.3191, allocations: 20.88 kB / 372.5 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.3207, allocations: 474.1 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004482/0.3252, allocations: 4.369 MB / 377.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.3261, allocations: 312.7 kB / 377.6 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003487/0.3264, allocations: 141.1 kB / 377.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001707/0.3266, allocations: 174.1 kB / 377.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.3267, allocations: 37.91 kB / 378 MB, free: 15.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.096e-06/0.3267, allocations: 0 / 378 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.004646/0.3313, allocations: 1.732 MB / 379.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.3314, allocations: 61.62 kB / 379.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009034/0.3323, allocations: 0.536 MB / 380.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.3323, allocations: 36.52 kB / 380.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/0.3326, allocations: 487.8 kB / 380.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3328, allocations: 206.9 kB / 381 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.333, allocations: 140.9 kB / 381.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3332, allocations: 377.2 kB / 381.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004071/0.3336, allocations: 161 kB / 381.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005298/0.3341, allocations: 462.1 kB / 382.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009853/0.3351, allocations: 0.6597 MB / 382.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.3352, allocations: 3.375 kB / 382.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001638/0.3368, allocations: 0.7389 MB / 383.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.3368, allocations: 9.438 kB / 383.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.3369, allocations: 14.69 kB / 383.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.3371, allocations: 51.7 kB / 383.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008535/0.3379, allocations: 186.3 kB / 383.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.3393, allocations: 1.688 MB / 385.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.3398, allocations: 25.33 kB / 385.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.228e-05/0.3399, allocations: 38.7 kB / 385.5 MB, free: 10.37 MB / 302.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.0003809/0.3403, allocations: 234.6 kB / 385.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.3405, allocations: 81.39 kB / 385.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001586/0.3406, allocations: 73.66 kB / 385.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3406, allocations: 4.844 kB / 385.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.3407, allocations: 2.281 kB / 385.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3407, allocations: 6.266 kB / 385.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002721/0.3434, allocations: 1.412 MB / 387.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.3434, allocations: 2.734 kB / 387.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007136/0.3442, allocations: 117.8 kB / 387.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001042/0.3443, allocations: 28.33 kB / 387.5 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.3443, allocations: 14.55 kB / 387.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009922/0.3453, allocations: 1.376 MB / 388.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.3454, allocations: 3.781 kB / 388.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.3468, allocations: 0.7737 MB / 389.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.347, allocations: 134.3 kB / 389.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.316e-05/0.3471, allocations: 18.81 kB / 389.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.3475, allocations: 14.33 kB / 389.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3476, allocations: 43.47 kB / 389.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.941e-05/0.3476, allocations: 17.75 kB / 389.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006541/0.3483, allocations: 365.9 kB / 390.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3483, allocations: 0 / 390.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001253/0.3496, allocations: 142.3 kB / 390.4 MB, free: 6.938 MB / 302.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.0001585/0.3498, allocations: 123.4 kB / 390.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.3508, allocations: 0.5903 MB / 391.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3509, allocations: 1.125 kB / 391.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.3513, allocations: 309.8 kB / 391.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006345/0.3519, allocations: 111.1 kB / 391.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.3546, allocations: 1.848 MB / 393.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006059/0.3552, allocations: 0.9637 MB / 394.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003096/0.3555, allocations: 83.75 kB / 394.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3556, allocations: 59.78 kB / 394.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3556, allocations: 4 kB / 394.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of Templates: time 0.01312/0.3688, allocations: 5.283 MB / 399.7 MB, free: 2.602 MB / 302.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 -s gbode -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