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.001379/0.001379, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001654/0.001654, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.4/1.4, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 54.92 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.106, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004719/0.1108, allocations: 2.823 MB / 353 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.1128, allocations: 1.152 MB / 354.2 MB, free: 316 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.113, allocations: 8 kB / 354.2 MB, free: 308 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.1145, allocations: 0.6239 MB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003438/0.1148, allocations: 131 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.1161, allocations: 0.6842 MB / 355.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.1165, allocations: 298.6 kB / 355.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004794/0.117, allocations: 267 kB / 356.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1172, allocations: 127.5 kB / 356.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.1175, allocations: 171.3 kB / 356.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.345e-05/0.1175, allocations: 28 kB / 356.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003702/0.1179, allocations: 179.8 kB / 356.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.385e-05/0.118, allocations: 63.7 kB / 356.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.1181, allocations: 147.3 kB / 356.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005715/0.1187, allocations: 494.5 kB / 357.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1187, allocations: 0 / 357.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1187, allocations: 0 / 357.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1187, allocations: 0 / 357.3 MB, free: 13.12 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.001598/0.1203, allocations: 0.7294 MB / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1204, allocations: 8.031 kB / 358.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.048e-05/0.1205, allocations: 70.72 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008078/0.1213, allocations: 116.5 kB / 358.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.1216, allocations: 264 kB / 358.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.1216, allocations: 32.97 kB / 358.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.537e-05/0.1217, allocations: 40.12 kB / 358.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.1222, allocations: 325.1 kB / 358.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.1222, allocations: 3.938 kB / 358.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.1223, allocations: 12 kB / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1223, allocations: 8 kB / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003942/0.1227, allocations: 250.4 kB / 359.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.1245, allocations: 1.443 MB / 360.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006364/0.1252, allocations: 0.6965 MB / 361.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.1254, allocations: 108.8 kB / 361.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.487e-05/0.1255, allocations: 85.09 kB / 361.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.1255, allocations: 42.56 kB / 361.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.1255, allocations: 0 / 361.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001156/0.1267, allocations: 495 kB / 362 MB, free: 8.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.1267, allocations: 51.41 kB / 362.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.1269, allocations: 173.1 kB / 362.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.1269, allocations: 33.7 kB / 362.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/0.127, allocations: 180 kB / 362.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.965e-05/0.1271, allocations: 78.77 kB / 362.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.1272, allocations: 53.97 kB / 362.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1273, allocations: 326.8 kB / 362.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1274, allocations: 68.53 kB / 363 MB, free: 7.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.1276, allocations: 133 kB / 363.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/0.1278, allocations: 228.9 kB / 363.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1278, allocations: 0 / 363.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005306/0.1284, allocations: 327.5 kB / 363.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1284, allocations: 8 kB / 363.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1284, allocations: 224 / 363.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.1287, allocations: 76.8 kB / 363.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1289, allocations: 47.92 kB / 363.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/0.1307, allocations: 2.041 MB / 365.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.1309, allocations: 23.69 kB / 365.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.1309, allocations: 12 kB / 365.8 MB, free: 3.938 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.0001355/0.131, allocations: 141.8 kB / 366 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.28e-05/0.1311, allocations: 23.75 kB / 366 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005308/0.1316, allocations: 295.9 kB / 366.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1317, allocations: 4 kB / 366.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1317, allocations: 0 / 366.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1317, allocations: 0 / 366.3 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008933/0.1326, allocations: 0.69 MB / 367 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.1326, allocations: 0 / 367 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.1327, allocations: 27.98 kB / 367 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000231/0.1329, allocations: 72.75 kB / 367.1 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.133, allocations: 8 kB / 367.1 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.1347, allocations: 2.022 MB / 369.1 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1347, allocations: 4.062 kB / 369.1 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1395/0.2743, allocations: 446.9 kB / 369.6 MB, free: 25.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.2744, allocations: 112.3 kB / 369.7 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.2745, allocations: 5.922 kB / 369.7 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.2746, allocations: 5.25 kB / 369.7 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/0.2747, allocations: 19.03 kB / 369.7 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.2747, allocations: 4.828 kB / 369.7 MB, free: 24.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.2748, allocations: 131.8 kB / 369.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2748, allocations: 0 / 369.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006556/0.2755, allocations: 92.48 kB / 369.9 MB, free: 24.86 MB / 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.0009541/0.2764, allocations: 0.9996 MB / 370.9 MB, free: 24.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006231/0.2771, allocations: 363.3 kB / 371.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2771, allocations: 0.6875 kB / 371.3 MB, free: 24.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.2774, allocations: 247.2 kB / 371.5 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.2778, allocations: 30.84 kB / 371.5 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.2806, allocations: 2.5 MB / 374 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.2809, allocations: 0.7584 MB / 374.8 MB, free: 21.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.281, allocations: 22.36 kB / 374.8 MB, free: 21.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.23e-05/0.2811, allocations: 71.78 kB / 374.9 MB, free: 21.83 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2811, allocations: 2.062 kB / 374.9 MB, free: 21.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.3059, allocations: 4.957 MB / 379.9 MB, free: 21.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.58, allocations: 12.98 kB / 379.9 MB, free: 21.23 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