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.0007721/0.000772, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009584/0.0009585, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.7 MB / 246.8 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002045, allocations: 4 kB / 307.7 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09271, allocations: 51.53 MB / 359.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004758/0.0975, allocations: 4.155 MB / 363.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.09974, allocations: 1.364 MB / 364.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00057/0.1003, allocations: 19.88 kB / 364.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.1007, allocations: 134.9 kB / 364.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003468/0.101, allocations: 134.8 kB / 365.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006958/0.1017, allocations: 335.6 kB / 365.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.1026, allocations: 0.9156 MB / 366.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004901/0.1031, allocations: 374.9 kB / 366.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003252/0.1034, allocations: 266.6 kB / 366.9 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.1037, allocations: 282.1 kB / 367.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.303e-05/0.1037, allocations: 28 kB / 367.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.1039, allocations: 79.91 kB / 367.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.904e-05/0.104, allocations: 119.3 kB / 367.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002802/0.1043, allocations: 395.2 kB / 367.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007292/0.105, allocations: 0.9418 MB / 368.8 MB, free: 3.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.105, allocations: 3.938 kB / 368.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.105, allocations: 0 / 368.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.1051, allocations: 3.938 kB / 368.8 MB, free: 3.766 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.001242/0.1063, allocations: 0.9744 MB / 369.7 MB, free: 2.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1063, allocations: 16.02 kB / 369.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002281/0.1066, allocations: 114.7 kB / 369.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007187/0.1073, allocations: 0.6032 MB / 370.5 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.535e-05/0.1074, allocations: 58 kB / 370.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.1075, allocations: 83.91 kB / 370.6 MB, free: 1.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.1087, allocations: 0.8481 MB / 371.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.955e-05/0.1087, allocations: 7.938 kB / 371.5 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.934e-05/0.1088, allocations: 43.98 kB / 371.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.1088, allocations: 20 kB / 371.5 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008411/0.1096, allocations: 475.3 kB / 372 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.171/0.2807, allocations: 4.399 MB / 376.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.2814, allocations: 301.8 kB / 376.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002753/0.2817, allocations: 143.9 kB / 376.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001571/0.2818, allocations: 172.7 kB / 377 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.2818, allocations: 37.38 kB / 377 MB, free: 15.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.294e-06/0.2819, allocations: 0.8125 kB / 377 MB, free: 15.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003165/0.285, allocations: 1.747 MB / 378.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.2851, allocations: 57.41 kB / 378.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.2856, allocations: 0.5444 MB / 379.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2856, allocations: 36.45 kB / 379.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.2859, allocations: 477.4 kB / 379.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.286, allocations: 214.9 kB / 380.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.248e-05/0.2861, allocations: 69.42 kB / 380.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.2862, allocations: 383 kB / 380.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.2865, allocations: 168.5 kB / 380.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/0.2868, allocations: 460.2 kB / 381.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000656/0.2875, allocations: 0.6721 MB / 381.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.2875, allocations: 3.188 kB / 381.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001035/0.2886, allocations: 0.7409 MB / 382.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.2886, allocations: 9.281 kB / 382.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.2886, allocations: 10.44 kB / 382.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.2888, allocations: 57.2 kB / 382.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005601/0.2893, allocations: 184 kB / 382.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009238/0.2903, allocations: 1.513 MB / 384.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.2906, allocations: 26.45 kB / 384.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/0.2906, allocations: 38.98 kB / 384.4 MB, free: 10.42 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.0002604/0.2909, allocations: 241.3 kB / 384.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.232e-05/0.291, allocations: 77.44 kB / 384.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.2911, allocations: 72.38 kB / 384.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2911, allocations: 7.609 kB / 384.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.2911, allocations: 4.062 kB / 384.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2912, allocations: 6.219 kB / 384.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/0.2929, allocations: 1.418 MB / 386.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2929, allocations: 1.875 kB / 386.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/0.2934, allocations: 119.2 kB / 386.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.005e-05/0.2935, allocations: 23.12 kB / 386.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.2935, allocations: 17.17 kB / 386.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005398/0.2941, allocations: 1.273 MB / 387.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.2941, allocations: 3.625 kB / 387.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009177/0.295, allocations: 0.7922 MB / 388.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.392e-05/0.2951, allocations: 138.2 kB / 388.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.398e-05/0.2952, allocations: 15.3 kB / 388.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.2954, allocations: 16.03 kB / 388.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/0.2955, allocations: 43.28 kB / 388.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.2955, allocations: 21.27 kB / 388.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003808/0.2959, allocations: 361.8 kB / 389 MB, free: 7.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2959, allocations: 0 / 389 MB, free: 7.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006279/0.2965, allocations: 142.2 kB / 389.2 MB, free: 7.078 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.0001121/0.2967, allocations: 123.6 kB / 389.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.2977, allocations: 0.5892 MB / 389.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2977, allocations: 1.062 kB / 389.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.2981, allocations: 312 kB / 390.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008976/0.299, allocations: 108.3 kB / 390.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003135/0.3022, allocations: 2.38 MB / 392.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000583/0.3028, allocations: 0.967 MB / 393.6 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003123/0.3031, allocations: 88.08 kB / 393.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.3032, allocations: 63.98 kB / 393.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3032, allocations: 0 / 393.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of Templates: time 0.01125/0.3145, allocations: 4.996 MB / 398.8 MB, free: 2.488 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 -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