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.00082/0.0008198, allocations: 94.41 kB / 16.32 MB, free: 5.605 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.0008799/0.00088, allocations: 185.2 kB / 17.21 MB, free: 5.523 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.371/1.371, allocations: 223.2 MB / 241.2 MB, free: 312 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002629, allocations: 4 kB / 300.9 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 50.43 MB / 351.4 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.00287/0.1112, allocations: 2.363 MB / 353.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.1129, allocations: 1.044 MB / 354.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.113, allocations: 8 kB / 354.8 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003429/0.1134, allocations: 99.52 kB / 354.9 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003198/0.1137, allocations: 103.3 kB / 355 MB, free: 248 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.1149, allocations: 0.5452 MB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.1153, allocations: 270.7 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009533/0.1163, allocations: 0.5336 MB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.1164, allocations: 103.6 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.1167, allocations: 143.5 kB / 356.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.1167, allocations: 12 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003535/0.117, allocations: 159.8 kB / 356.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.131e-05/0.1171, allocations: 39.84 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.625e-05/0.1172, allocations: 77.52 kB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004321/0.1176, allocations: 383.2 kB / 357.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1176, allocations: 0 / 357.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1176, allocations: 0 / 357.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1176, allocations: 0 / 357.2 MB, free: 13.97 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.001435/0.1191, allocations: 0.6746 MB / 357.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1191, allocations: 8.031 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.46e-05/0.1192, allocations: 74.48 kB / 358 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007282/0.12, allocations: 119.5 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.1203, allocations: 255.2 kB / 358.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.1203, allocations: 28.59 kB / 358.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.138e-05/0.1204, allocations: 32 kB / 358.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005555/0.1209, allocations: 333 kB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.121, allocations: 7.922 kB / 358.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.121, allocations: 16 kB / 358.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.121, allocations: 11.95 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003846/0.1214, allocations: 234.5 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.1234, allocations: 1.443 MB / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006525/0.124, allocations: 0.7072 MB / 361.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.1242, allocations: 96.83 kB / 361.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.1243, allocations: 89.09 kB / 361.3 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.1244, allocations: 34.56 kB / 361.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1244, allocations: 0 / 361.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00117/0.1255, allocations: 0.4915 MB / 361.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.1256, allocations: 55.27 kB / 361.9 MB, free: 8.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1258, allocations: 176.2 kB / 362.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.1258, allocations: 29.7 kB / 362.1 MB, free: 8.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.1259, allocations: 179.9 kB / 362.3 MB, free: 8.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.126, allocations: 78.89 kB / 362.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.126, allocations: 8 kB / 362.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1262, allocations: 330.8 kB / 362.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.1263, allocations: 68.53 kB / 362.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1265, allocations: 133 kB / 362.9 MB, free: 7.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.1266, allocations: 81.17 kB / 363 MB, free: 7.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1266, allocations: 0 / 363 MB, free: 7.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005255/0.1272, allocations: 332 kB / 363.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1272, allocations: 4 kB / 363.3 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.1272, allocations: 7.984 kB / 363.3 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003041/0.1275, allocations: 68.81 kB / 363.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.1277, allocations: 43.92 kB / 363.4 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.1299, allocations: 1.839 MB / 365.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.13, allocations: 27.64 kB / 365.3 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.1301, allocations: 19.94 kB / 365.3 MB, free: 5.254 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.0001687/0.1302, allocations: 141.8 kB / 365.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.1303, allocations: 19.8 kB / 365.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008113/0.1311, allocations: 282.6 kB / 365.7 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1311, allocations: 4 kB / 365.7 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1311, allocations: 0 / 365.7 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1312, allocations: 4 kB / 365.7 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000976/0.1321, allocations: 0.6942 MB / 366.4 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.1322, allocations: 4 kB / 366.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.1323, allocations: 23.98 kB / 366.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002418/0.1326, allocations: 72.75 kB / 366.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1326, allocations: 8 kB / 366.5 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/0.1346, allocations: 1.835 MB / 368.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1347, allocations: 0 / 368.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006231/0.1353, allocations: 435.3 kB / 368.8 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.1354, allocations: 120.8 kB / 368.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.1355, allocations: 8.125 kB / 368.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.1356, allocations: 8 kB / 368.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.1357, allocations: 19.97 kB / 368.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.1357, allocations: 4 kB / 368.9 MB, free: 1.348 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.1358, allocations: 132.3 kB / 369.1 MB, free: 1.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1358, allocations: 0 / 369.1 MB, free: 1.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005239/0.1363, allocations: 95.69 kB / 369.2 MB, free: 1.125 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.001211/0.1376, allocations: 0.998 MB / 370.2 MB, free: 100 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1653/0.3029, allocations: 335 kB / 370.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.3029, allocations: 0.7188 kB / 370.5 MB, free: 24.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004278/0.3033, allocations: 253.8 kB / 370.7 MB, free: 24.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005006/0.3038, allocations: 22.66 kB / 370.8 MB, free: 24.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.3062, allocations: 1.431 MB / 372.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3064, allocations: 0.7551 MB / 372.9 MB, free: 23.01 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.3065, allocations: 25.53 kB / 373 MB, free: 23.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.043e-05/0.3066, allocations: 72.7 kB / 373 MB, free: 23 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3066, allocations: 0 / 373 MB, free: 23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.3257, allocations: 4.572 MB / 377.6 MB, free: 22.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.3259, allocations: 243.3 kB / 377.9 MB, free: 22.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.236, allocations: 1.219 kB / 377.9 MB, free: 22.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