Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.00125, allocations: 104.4 kB / 17.59 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 187.3 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 242.2 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 43.38 kB / 301.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1018, allocations: 49.44 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006571/0.1084, allocations: 4.564 MB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.1112, allocations: 1.337 MB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007384/0.1119, allocations: 23.81 kB / 356.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005091/0.1125, allocations: 182.2 kB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005172/0.113, allocations: 162.3 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000841/0.1139, allocations: 359.5 kB / 357.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.1149, allocations: 0.9744 MB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005916/0.1155, allocations: 418.9 kB / 358.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004068/0.1159, allocations: 326.5 kB / 359 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.1163, allocations: 346 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.111e-05/0.1164, allocations: 72 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002327/0.1166, allocations: 123.9 kB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.1168, allocations: 171.3 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003414/0.1171, allocations: 421.5 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.1182, allocations: 1.051 MB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1182, allocations: 0 / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1182, allocations: 0 / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.1182, allocations: 0 / 361.2 MB, free: 9.863 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.001587/0.1198, allocations: 1.149 MB / 362.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.1199, allocations: 8.031 kB / 362.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.12, allocations: 102.8 kB / 362.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007538/0.1208, allocations: 0.6032 MB / 363.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.1208, allocations: 54 kB / 363.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.121, allocations: 87.91 kB / 363.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.1222, allocations: 0.8442 MB / 364 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.1222, allocations: 11.84 kB / 364.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.888e-05/0.1223, allocations: 36 kB / 364.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/0.1223, allocations: 20 kB / 364.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008571/0.1232, allocations: 475.3 kB / 364.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.1269, allocations: 4.404 MB / 369 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/0.1275, allocations: 295.6 kB / 369.3 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.1278, allocations: 141.5 kB / 369.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002879/0.1281, allocations: 170.6 kB / 369.6 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.1281, allocations: 34.94 kB / 369.6 MB, free: 1.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 5.57e-06/0.1281, allocations: 7.984 kB / 369.6 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1575/0.2856, allocations: 1.733 MB / 371.3 MB, free: 25.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.2857, allocations: 58.84 kB / 371.4 MB, free: 25.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006747/0.2863, allocations: 0.5349 MB / 371.9 MB, free: 25.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.2864, allocations: 37.97 kB / 372 MB, free: 25.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.2867, allocations: 486 kB / 372.4 MB, free: 24.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.2868, allocations: 211.3 kB / 372.7 MB, free: 24.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.287, allocations: 138.9 kB / 372.8 MB, free: 24.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.2871, allocations: 381.7 kB / 373.2 MB, free: 24.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.2874, allocations: 159.3 kB / 373.3 MB, free: 24.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.2879, allocations: 464.5 kB / 373.8 MB, free: 23.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006793/0.2886, allocations: 0.6686 MB / 374.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.2886, allocations: 2.375 kB / 374.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0012/0.2898, allocations: 0.737 MB / 375.2 MB, free: 23.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.2898, allocations: 7.969 kB / 375.2 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.2899, allocations: 11.2 kB / 375.2 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.29, allocations: 50.72 kB / 375.2 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006145/0.2907, allocations: 181.4 kB / 375.4 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.2918, allocations: 1.689 MB / 377.1 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.2922, allocations: 34.33 kB / 377.1 MB, free: 21.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.61e-05/0.2922, allocations: 38.66 kB / 377.2 MB, free: 21.36 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.0003062/0.2926, allocations: 229.3 kB / 377.4 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.574e-05/0.2927, allocations: 68 kB / 377.5 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.2928, allocations: 76.61 kB / 377.5 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.2928, allocations: 10.69 kB / 377.6 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.2928, allocations: 0 / 377.6 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2928, allocations: 4.375 kB / 377.6 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.2946, allocations: 1.416 MB / 379 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.2946, allocations: 2.969 kB / 379 MB, free: 20.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.2951, allocations: 121 kB / 379.1 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.77e-05/0.2952, allocations: 24.45 kB / 379.1 MB, free: 20.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.2953, allocations: 15.23 kB / 379.1 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006637/0.2959, allocations: 1.371 MB / 380.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.296, allocations: 7.031 kB / 380.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009715/0.2969, allocations: 0.7784 MB / 381.3 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.2971, allocations: 137.5 kB / 381.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.2971, allocations: 19.27 kB / 381.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.2973, allocations: 11.91 kB / 381.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.2974, allocations: 46.83 kB / 381.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.2975, allocations: 21.08 kB / 381.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004291/0.2979, allocations: 362.7 kB / 381.9 MB, free: 17.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2979, allocations: 0 / 381.9 MB, free: 17.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007916/0.2987, allocations: 141.1 kB / 382 MB, free: 17.95 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.0001428/0.2989, allocations: 124.5 kB / 382.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.3001, allocations: 0.6194 MB / 382.8 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3001, allocations: 0 / 382.8 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000379/0.3005, allocations: 305.6 kB / 383.1 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006802/0.3012, allocations: 100.3 kB / 383.2 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.3039, allocations: 1.895 MB / 385.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005231/0.3045, allocations: 0.9642 MB / 386 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.3047, allocations: 64.08 kB / 386.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3047, allocations: 0 / 386.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01859/0.3233, allocations: 12.33 MB / 398.4 MB, free: 9.453 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches