Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.0009675/0.0009675, allocations: 97.42 kB / 16.95 MB, free: 5.98 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.001066/0.001066, allocations: 179.5 kB / 17.84 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005023/0.0005025, allocations: 16 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1088, allocations: 47.58 MB / 328.5 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004471/0.1133, allocations: 2.856 MB / 331.3 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003063/0.1164, allocations: 1.311 MB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005484/0.117, allocations: 11.94 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003508/0.1205, allocations: 1.711 MB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007836/0.1214, allocations: 143 kB / 334.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008868/0.1223, allocations: 239.5 kB / 334.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00259/0.1249, allocations: 1.392 MB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004626/0.1254, allocations: 106.6 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007249/0.1261, allocations: 287.2 kB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.1268, allocations: 306.9 kB / 336.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.1269, allocations: 24 kB / 336.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002901/0.1272, allocations: 43.98 kB / 336.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008214/0.1281, allocations: 0.8298 MB / 337.7 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005188/0.1286, allocations: 388.2 kB / 338.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00239/0.131, allocations: 2.086 MB / 340.2 MB, free: 8.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.131, allocations: 0 / 340.2 MB, free: 8.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.131, allocations: 0 / 340.2 MB, free: 8.203 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001236/0.1312, allocations: 0 / 340.2 MB, free: 8.203 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005684/0.1369, allocations: 2.434 MB / 342.6 MB, free: 5.707 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.551e-05/0.137, allocations: 8.031 kB / 342.6 MB, free: 5.699 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002277/0.1372, allocations: 78.52 kB / 342.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009257/0.1381, allocations: 280.3 kB / 343 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005243/0.1434, allocations: 1.693 MB / 344.7 MB, free: 3.586 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.1436, allocations: 58.69 kB / 344.7 MB, free: 3.523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003466/0.1439, allocations: 44 kB / 344.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.1453, allocations: 395 kB / 345.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.1454, allocations: 0 / 345.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.308e-05/0.1454, allocations: 16 kB / 345.2 MB, free: 3.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1455, allocations: 8 kB / 345.2 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.1467, allocations: 327.7 kB / 345.5 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007758/0.1545, allocations: 2.915 MB / 348.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.1556, allocations: 320.9 kB / 348.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005373/0.1561, allocations: 161.6 kB / 348.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.161e-05/0.1562, allocations: 12.58 kB / 348.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.1563, allocations: 38.56 kB / 348.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 4.659e-06/0.1563, allocations: 3.938 kB / 348.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.008812/0.1651, allocations: 2.382 MB / 351.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.1653, allocations: 81.55 kB / 351.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01294/0.1782, allocations: 5.439 MB / 356.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.1784, allocations: 37.7 kB / 356.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001955/0.1804, allocations: 1.199 MB / 358.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/0.1807, allocations: 177.5 kB / 358.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.1808, allocations: 12 kB / 358.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.181, allocations: 326 kB / 358.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.1816, allocations: 144.9 kB / 358.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006072/0.1823, allocations: 221.7 kB / 358.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006882/0.183, allocations: 168.8 kB / 359.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.183, allocations: 0 / 359.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00264/0.1856, allocations: 0.6761 MB / 359.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.1857, allocations: 8.25 kB / 359.8 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.1857, allocations: 4 kB / 359.8 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.1858, allocations: 4 kB / 359.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008584/0.1866, allocations: 135.7 kB / 359.9 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.1867, allocations: 4 kB / 359.9 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.188, allocations: 16 kB / 359.9 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.847e-05/0.1881, allocations: 19.98 kB / 359.9 MB, free: 3.988 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (62): * Single equations (assignments): 62 * 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.002942/0.191, allocations: 0.9231 MB / 360.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/0.1923, allocations: 268.5 kB / 361.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.1954, allocations: 0.7746 MB / 361.9 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.1954, allocations: 7.938 kB / 361.9 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.1954, allocations: 4 kB / 361.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.1955, allocations: 3.984 kB / 361.9 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005067/0.2005, allocations: 1.477 MB / 363.4 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.2006, allocations: 3.938 kB / 363.4 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008311/0.2014, allocations: 91.88 kB / 363.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000725/0.2022, allocations: 88.8 kB / 363.6 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.691e-05/0.2023, allocations: 12 kB / 363.6 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.2035, allocations: 0.6266 MB / 364.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2036, allocations: 0 / 364.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003903/0.2075, allocations: 1.058 MB / 365.3 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002094/0.2096, allocations: 0.4897 MB / 365.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000902/0.2105, allocations: 11.95 kB / 365.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.2121, allocations: 27.98 kB / 365.8 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.2123, allocations: 28.34 kB / 365.8 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.771e-05/0.2123, allocations: 19.98 kB / 365.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.01282/0.2252, allocations: 3.977 MB / 369.8 MB, free: 9.965 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.2252, allocations: 0 / 369.8 MB, free: 9.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002545/0.2278, allocations: 208 kB / 370 MB, free: 9.762 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * 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 (41): * Single equations (assignments): 40 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.006007/0.2338, allocations: 1.933 MB / 372 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.2353, allocations: 376.9 kB / 372.3 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/0.2354, allocations: 4.5 kB / 372.3 MB, free: 7.438 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.2362, allocations: 218.4 kB / 372.6 MB, free: 7.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003731/0.24, allocations: 187.2 kB / 372.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2859/0.5259, allocations: 20.38 MB / 393.1 MB, free: 45.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/0.5277, allocations: 1.818 MB / 394.9 MB, free: 44.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007497/0.5285, allocations: 274.6 kB / 395.2 MB, free: 44.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/0.5296, allocations: 0.929 MB / 396.1 MB, free: 43.65 MB / 318.1 MB Notification: Performance of SimCode: time 1.683e-06/0.5296, allocations: 0 / 396.1 MB, free: 43.65 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06993/0.5995, allocations: 39.64 MB / 435.8 MB, free: 6.129 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/0.5998, allocations: 297.2 kB / 436.1 MB, free: 5.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.421/4.021, allocations: 7.891 kB / 436.1 MB, free: 5.762 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat