Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001363, allocations: 110.4 kB / 16.51 MB, free: 6.707 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.001101/0.001101, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.336/1.336, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 51.08 kB / 300.1 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08377/0.08506, allocations: 49.44 MB / 349.5 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003895/0.08899, allocations: 2.865 MB / 352.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.09085, allocations: 1.145 MB / 353.5 MB, free: 492 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.09105, allocations: 4 kB / 353.5 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.09241, allocations: 0.5901 MB / 354.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.09273, allocations: 107.3 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.09396, allocations: 0.6571 MB / 354.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004014/0.09438, allocations: 290.5 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004423/0.09483, allocations: 251.6 kB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.09503, allocations: 115.6 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.09524, allocations: 167.4 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.09528, allocations: 20 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003612/0.09565, allocations: 171.8 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.483e-05/0.09572, allocations: 59.7 kB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.09586, allocations: 143.3 kB / 356.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005288/0.09639, allocations: 494.4 kB / 356.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.09641, allocations: 0 / 356.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.09642, allocations: 4 kB / 356.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.09643, allocations: 0 / 356.6 MB, free: 13.44 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001593/0.09803, allocations: 0.7216 MB / 357.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.09807, allocations: 8.031 kB / 357.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.312e-05/0.09816, allocations: 78.72 kB / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00077/0.09894, allocations: 116.5 kB / 357.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.09924, allocations: 260.5 kB / 357.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.09927, allocations: 25.03 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.09932, allocations: 32.12 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.09986, allocations: 333.1 kB / 358.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.09988, allocations: 0 / 358.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.09992, allocations: 16 kB / 358.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.09993, allocations: 8 kB / 358.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003833/0.1003, allocations: 238.5 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.1022, allocations: 1.447 MB / 359.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/0.1028, allocations: 0.707 MB / 360.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.103, allocations: 112.8 kB / 360.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.26e-05/0.1031, allocations: 85.09 kB / 360.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.1031, allocations: 34.56 kB / 360.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.1031, allocations: 0 / 360.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001139/0.1042, allocations: 499 kB / 361.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.1043, allocations: 55.41 kB / 361.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.1045, allocations: 175.2 kB / 361.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.1045, allocations: 29.7 kB / 361.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1046, allocations: 172 kB / 361.7 MB, free: 7.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.1047, allocations: 86.73 kB / 361.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/0.1048, allocations: 57.92 kB / 361.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1049, allocations: 330.8 kB / 362.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.105, allocations: 72.55 kB / 362.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.1051, allocations: 140.9 kB / 362.3 MB, free: 7.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.1054, allocations: 212.1 kB / 362.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1054, allocations: 0 / 362.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005399/0.106, allocations: 332.6 kB / 362.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.106, allocations: 8 kB / 362.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.106, allocations: 0 / 362.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000285/0.1063, allocations: 76.75 kB / 363 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.1065, allocations: 43.97 kB / 363 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.1083, allocations: 1.831 MB / 364.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.1084, allocations: 27.69 kB / 364.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.1084, allocations: 8 kB / 364.9 MB, free: 4.473 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001283/0.1086, allocations: 145.8 kB / 365 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.294e-05/0.1086, allocations: 19.8 kB / 365 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005214/0.1091, allocations: 288.3 kB / 365.3 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1092, allocations: 4 kB / 365.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1092, allocations: 0 / 365.3 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1092, allocations: 7.922 kB / 365.3 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008964/0.1101, allocations: 0.6996 MB / 366 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1101, allocations: 0 / 366 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1102, allocations: 23.98 kB / 366 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002271/0.1104, allocations: 76.75 kB / 366.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.1105, allocations: 3.984 kB / 366.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/0.1121, allocations: 1.839 MB / 368 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1122, allocations: 0 / 368 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006045/0.1128, allocations: 439.9 kB / 368.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.1129, allocations: 116.7 kB / 368.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.1129, allocations: 4.125 kB / 368.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.113, allocations: 12 kB / 368.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.1131, allocations: 19.91 kB / 368.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.1131, allocations: 11.94 kB / 368.5 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.617e-05/0.1132, allocations: 131.5 kB / 368.7 MB, free: 412 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1132, allocations: 0 / 368.7 MB, free: 412 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004353/0.1136, allocations: 88.12 kB / 368.8 MB, free: 324 kB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1544/0.268, allocations: 1.003 MB / 369.8 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006856/0.2687, allocations: 351.9 kB / 370.1 MB, free: 24.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2687, allocations: 0.5312 kB / 370.1 MB, free: 24.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.2691, allocations: 241.4 kB / 370.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.2695, allocations: 21.62 kB / 370.4 MB, free: 24.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.2725, allocations: 2.611 MB / 373 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.2727, allocations: 0.7571 MB / 373.7 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.2728, allocations: 22.69 kB / 373.8 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.099e-05/0.2729, allocations: 76.16 kB / 373.8 MB, free: 22.08 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2729, allocations: 0 / 373.8 MB, free: 22.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.2895, allocations: 4.748 MB / 378.6 MB, free: 21.62 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001378/0.2896, allocations: 249.4 kB / 378.8 MB, free: 21.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.237, allocations: 3.516 kB / 378.8 MB, free: 21.37 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches