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.001597/0.001597, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001989, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 68.03 kB / 307 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1052, allocations: 50.54 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006239/0.1115, allocations: 4.583 MB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.1141, allocations: 1.403 MB / 363.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.1145, allocations: 23.81 kB / 363.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003999/0.1149, allocations: 178.2 kB / 363.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003734/0.1152, allocations: 162.3 kB / 363.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008298/0.1161, allocations: 387.4 kB / 364.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.1171, allocations: 0.9666 MB / 365.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005867/0.1177, allocations: 422.9 kB / 365.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004287/0.1181, allocations: 330.6 kB / 365.9 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003937/0.1186, allocations: 350 kB / 366.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.1187, allocations: 72 kB / 366.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002657/0.1189, allocations: 119.9 kB / 366.5 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.1191, allocations: 171.3 kB / 366.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004558/0.1196, allocations: 433.5 kB / 367.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.1207, allocations: 1.047 MB / 368.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1207, allocations: 0 / 368.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1207, allocations: 0 / 368.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1207, allocations: 0 / 368.1 MB, free: 3.398 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.001704/0.1224, allocations: 1.149 MB / 369.3 MB, free: 2.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.1225, allocations: 8.031 kB / 369.3 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002605/0.1227, allocations: 118.7 kB / 369.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008675/0.1236, allocations: 0.5993 MB / 370 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.1237, allocations: 62 kB / 370 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.1238, allocations: 76 kB / 370.1 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.1251, allocations: 0.8481 MB / 371 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.725e-05/0.1252, allocations: 11.84 kB / 371 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.124e-05/0.1252, allocations: 36 kB / 371 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.1253, allocations: 24 kB / 371 MB, free: 276 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1499/0.2752, allocations: 474.3 kB / 371.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003279/0.2785, allocations: 4.394 MB / 375.9 MB, free: 16.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006012/0.2791, allocations: 305.6 kB / 376.2 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.2794, allocations: 139.3 kB / 376.3 MB, free: 16.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002193/0.2796, allocations: 167.4 kB / 376.5 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.2797, allocations: 42.03 kB / 376.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.2797, allocations: 1.312 kB / 376.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003323/0.283, allocations: 1.735 MB / 378.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.283, allocations: 57.47 kB / 378.3 MB, free: 15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006304/0.2837, allocations: 0.534 MB / 378.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2837, allocations: 40.39 kB / 378.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.284, allocations: 484.8 kB / 379.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.2841, allocations: 213.2 kB / 379.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.2843, allocations: 138.4 kB / 379.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2844, allocations: 387.5 kB / 380.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.2847, allocations: 160.7 kB / 380.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/0.2851, allocations: 455.8 kB / 380.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007808/0.2859, allocations: 0.6645 MB / 381.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2859, allocations: 3.188 kB / 381.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001092/0.287, allocations: 0.7352 MB / 382.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.287, allocations: 14.09 kB / 382.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.2871, allocations: 13.78 kB / 382.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.2873, allocations: 52.03 kB / 382.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005793/0.2878, allocations: 181.5 kB / 382.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.2889, allocations: 1.686 MB / 384 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.2892, allocations: 24.53 kB / 384.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.2892, allocations: 41.16 kB / 384.1 MB, free: 10.67 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.0002404/0.2895, allocations: 229.7 kB / 384.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.2895, allocations: 79.5 kB / 384.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.2897, allocations: 74.02 kB / 384.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2897, allocations: 11.64 kB / 384.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.2897, allocations: 0 / 384.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.2897, allocations: 3.281 kB / 384.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.2915, allocations: 1.416 MB / 385.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.2916, allocations: 3.75 kB / 385.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.292, allocations: 113.2 kB / 386 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-05/0.2921, allocations: 30.44 kB / 386.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.2922, allocations: 18.25 kB / 386.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00062/0.2928, allocations: 1.367 MB / 387.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.2928, allocations: 11.42 kB / 387.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009134/0.2937, allocations: 0.7713 MB / 388.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.2938, allocations: 133.2 kB / 388.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.52e-05/0.2939, allocations: 24.25 kB / 388.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.2941, allocations: 13.97 kB / 388.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/0.2942, allocations: 39.25 kB / 388.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.2942, allocations: 17.38 kB / 388.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003826/0.2946, allocations: 365.4 kB / 388.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2946, allocations: 0 / 388.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000639/0.2952, allocations: 138.2 kB / 388.9 MB, free: 7.246 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.0001418/0.2954, allocations: 128.3 kB / 389.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.2964, allocations: 0.618 MB / 389.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2964, allocations: 0 / 389.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003562/0.2968, allocations: 307.6 kB / 390 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006039/0.2974, allocations: 100.9 kB / 390.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.3, allocations: 1.877 MB / 392 MB, free: 5.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.3005, allocations: 0.9654 MB / 392.9 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002788/0.3007, allocations: 87.94 kB / 393 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3009, allocations: 59.39 kB / 393.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3009, allocations: 0 / 393.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of Templates: time 0.01108/0.3119, allocations: 5.282 MB / 398.3 MB, free: 2.922 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.1.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