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.001117/0.001117, allocations: 93.61 kB / 16.3 MB, free: 6.133 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.001179/0.001179, allocations: 180.3 kB / 17.2 MB, free: 6.016 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.368/1.368, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002698, allocations: 8 kB / 300.8 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1128, allocations: 50.41 MB / 351.2 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002845/0.1157, allocations: 2.251 MB / 353.5 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1173, allocations: 1.052 MB / 354.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.1175, allocations: 11.94 kB / 354.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.1178, allocations: 95.52 kB / 354.6 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003223/0.1181, allocations: 123.6 kB / 354.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.1193, allocations: 0.5568 MB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003535/0.1196, allocations: 207.6 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009085/0.1206, allocations: 0.5062 MB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.1207, allocations: 111.6 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.1209, allocations: 139.4 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.121, allocations: 12 kB / 356.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003618/0.1213, allocations: 143.8 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.09e-05/0.1214, allocations: 43.83 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.433e-05/0.1215, allocations: 77.52 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.1219, allocations: 363.3 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.1219, allocations: 0 / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1219, allocations: 0 / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1219, allocations: 0 / 356.9 MB, free: 14.19 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.001468/0.1234, allocations: 0.6785 MB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1234, allocations: 8.031 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.684e-05/0.1235, allocations: 74.48 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007694/0.1243, allocations: 127.5 kB / 357.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.1246, allocations: 247.3 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.1246, allocations: 28.66 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.1247, allocations: 35.98 kB / 358.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005373/0.1252, allocations: 321.1 kB / 358.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1253, allocations: 3.938 kB / 358.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.1253, allocations: 16 kB / 358.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1253, allocations: 11.95 kB / 358.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003905/0.1257, allocations: 234.5 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.1277, allocations: 1.455 MB / 360.1 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006643/0.1284, allocations: 0.6959 MB / 360.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.1285, allocations: 85.09 kB / 360.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.1286, allocations: 38.56 kB / 360.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.1286, allocations: 4 kB / 360.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001165/0.1297, allocations: 491.3 kB / 361.4 MB, free: 9.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.1298, allocations: 51.41 kB / 361.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.13, allocations: 180.2 kB / 361.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.13, allocations: 29.7 kB / 361.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1301, allocations: 175.9 kB / 361.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.349e-05/0.1302, allocations: 74.91 kB / 361.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.1302, allocations: 8 kB / 361.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1303, allocations: 326.8 kB / 362.2 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.1305, allocations: 68.53 kB / 362.3 MB, free: 8.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.1306, allocations: 129 kB / 362.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.1308, allocations: 93.11 kB / 362.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1308, allocations: 0 / 362.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005209/0.1313, allocations: 319.8 kB / 362.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.1313, allocations: 11.03 kB / 362.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1313, allocations: 7.938 kB / 362.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002866/0.1316, allocations: 80.8 kB / 362.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1318, allocations: 39.92 kB / 363 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.1336, allocations: 1.866 MB / 364.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.1338, allocations: 27.75 kB / 364.9 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.1338, allocations: 15.95 kB / 364.9 MB, free: 5.562 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.134, allocations: 145.8 kB / 365 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.019e-05/0.134, allocations: 15.81 kB / 365 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005247/0.1345, allocations: 291.6 kB / 365.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1346, allocations: 4 kB / 365.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.1346, allocations: 0 / 365.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1346, allocations: 0.5625 kB / 365.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008932/0.1355, allocations: 0.6865 MB / 366 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1355, allocations: 4 kB / 366 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.1356, allocations: 23.98 kB / 366.1 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002289/0.1358, allocations: 76.69 kB / 366.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.1359, allocations: 4 kB / 366.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.1375, allocations: 1.858 MB / 368 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1376, allocations: 0 / 368 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005778/0.1381, allocations: 443.7 kB / 368.4 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.675e-05/0.1382, allocations: 108.9 kB / 368.5 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.1383, allocations: 11.95 kB / 368.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.1384, allocations: 16.11 kB / 368.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.19e-05/0.1384, allocations: 11.98 kB / 368.6 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.1385, allocations: 8 kB / 368.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.052e-05/0.1386, allocations: 128.4 kB / 368.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1386, allocations: 0 / 368.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.139, allocations: 99.67 kB / 368.8 MB, free: 1.406 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009004/0.1399, allocations: 0.989 MB / 369.8 MB, free: 400 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005473/0.1405, allocations: 358.3 kB / 370.1 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1405, allocations: 0 / 370.1 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1449/0.2854, allocations: 238 kB / 370.4 MB, free: 24.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.2858, allocations: 22.03 kB / 370.4 MB, free: 24.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002412/0.2882, allocations: 2.497 MB / 372.9 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.2885, allocations: 0.7618 MB / 373.6 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.2886, allocations: 25.72 kB / 373.7 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.2887, allocations: 72.7 kB / 373.7 MB, free: 21.99 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2888, allocations: 0.5 kB / 373.7 MB, free: 21.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.3068, allocations: 4.55 MB / 378.3 MB, free: 21.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001438/0.307, allocations: 224.8 kB / 378.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.172, allocations: 3.234 kB / 378.5 MB, free: 21.39 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat