Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",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.0007737/0.0007738, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0007747/0.0007748, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.415/1.415, allocations: 223.3 MB / 241.2 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002688, allocations: 6.156 kB / 300.9 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 50.42 MB / 351.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003229/0.1045, allocations: 2.393 MB / 353.7 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002519/0.107, allocations: 1.161 MB / 354.9 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003493/0.1074, allocations: 7.938 kB / 354.9 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003389/0.1078, allocations: 47.61 kB / 355 MB, free: 8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007045/0.1085, allocations: 187 kB / 355.1 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.1088, allocations: 87.88 kB / 355.2 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005281/0.1093, allocations: 410.8 kB / 355.6 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.1095, allocations: 73.28 kB / 355.7 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003271/0.1099, allocations: 155.5 kB / 355.8 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.1102, allocations: 195.3 kB / 356 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.18e-05/0.1103, allocations: 28 kB / 356.1 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003244/0.1107, allocations: 139.9 kB / 356.2 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-05/0.1107, allocations: 71.72 kB / 356.3 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.1109, allocations: 81.52 kB / 356.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1113, allocations: 370.9 kB / 356.7 MB, free: 6.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1113, allocations: 0 / 356.7 MB, free: 6.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.1113, allocations: 0 / 356.7 MB, free: 6.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.1113, allocations: 0 / 356.7 MB, free: 6.227 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001539/0.1129, allocations: 0.6587 MB / 357.4 MB, free: 5.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.1129, allocations: 8.031 kB / 357.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.8e-05/0.113, allocations: 58.55 kB / 357.4 MB, free: 5.445 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.945e-05/0.1131, allocations: 35.62 kB / 357.5 MB, free: 5.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.1136, allocations: 323.9 kB / 357.8 MB, free: 5.051 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.454e-05/0.1137, allocations: 46.27 kB / 357.8 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.1138, allocations: 39.89 kB / 357.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000627/0.1145, allocations: 332.4 kB / 358.2 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1145, allocations: 3.938 kB / 358.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.1145, allocations: 12 kB / 358.2 MB, free: 4.609 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.1145, allocations: 7.938 kB / 358.2 MB, free: 4.602 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000665/0.1152, allocations: 310 kB / 358.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.117, allocations: 1.167 MB / 359.7 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.1176, allocations: 301 kB / 360 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003118/0.1179, allocations: 177.6 kB / 360.2 MB, free: 2.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.118, allocations: 0 / 360.2 MB, free: 2.559 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.118, allocations: 42.5 kB / 360.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/0.118, allocations: 0 / 360.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.008517/0.1265, allocations: 2.538 MB / 362.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.1266, allocations: 81.11 kB / 362.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.1269, allocations: 288.9 kB / 363.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.127, allocations: 29.7 kB / 363.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1271, allocations: 168.4 kB / 363.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.1272, allocations: 149.8 kB / 363.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.718e-05/0.1273, allocations: 12 kB / 363.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1274, allocations: 342.8 kB / 363.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003969/0.1278, allocations: 160.8 kB / 363.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.1282, allocations: 246.6 kB / 364.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.1286, allocations: 185.8 kB / 364.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1286, allocations: 0 / 364.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009732/0.1296, allocations: 0.5046 MB / 364.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.1296, allocations: 6.188 kB / 364.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1297, allocations: 4 kB / 364.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1297, allocations: 4 kB / 364.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005647/0.1303, allocations: 119.8 kB / 365 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1303, allocations: 8.031 kB / 365 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003636/0.1306, allocations: 43.97 kB / 365 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.1307, allocations: 16 kB / 365.1 MB, free: 13.49 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.1309, allocations: 153.7 kB / 365.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.921e-05/0.131, allocations: 31.67 kB / 365.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00195/0.1329, allocations: 0.6877 MB / 365.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.1329, allocations: 8 kB / 365.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.133, allocations: 7.938 kB / 365.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.133, allocations: 0 / 365.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00325/0.1362, allocations: 1.326 MB / 367.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1362, allocations: 0 / 367.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004333/0.1367, allocations: 95.89 kB / 367.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00162/0.1383, allocations: 284.5 kB / 367.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.734e-05/0.1384, allocations: 8 kB / 367.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003915/0.1423, allocations: 2.284 MB / 369.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1423, allocations: 0 / 369.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.1446, allocations: 1.049 MB / 371 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002758/0.1449, allocations: 152.7 kB / 371.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.145, allocations: 4 kB / 371.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003994/0.1454, allocations: 31.98 kB / 371.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.1455, allocations: 40.31 kB / 371.2 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.1456, allocations: 16 kB / 371.2 MB, free: 7.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.1458, allocations: 212.5 kB / 371.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1458, allocations: 0 / 371.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005525/0.1463, allocations: 116 kB / 371.5 MB, free: 6.746 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.003018/0.1494, allocations: 1.629 MB / 373.2 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009948/0.1504, allocations: 450 kB / 373.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.1504, allocations: 4 kB / 373.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007575/0.1512, allocations: 385.4 kB / 374 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000555/0.1517, allocations: 40.61 kB / 374 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004323/0.1561, allocations: 2.626 MB / 376.7 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.1565, allocations: 0.7816 MB / 377.4 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.1568, allocations: 42.95 kB / 377.5 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.157, allocations: 115.4 kB / 377.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.157, allocations: 0 / 377.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.1823, allocations: 8.822 MB / 386.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003153/0.1827, allocations: 237.1 kB / 386.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.935/2.118, allocations: 3.875 kB / 386.7 MB, free: 7.742 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat