Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 91.25 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.971e-05/1.979e-05, allocations: 0 / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3313, allocations: 47.56 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.4659, allocations: 83.19 MB / 445.6 MB, free: 3.09 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.4662, allocations: 79.95 kB / 445.7 MB, free: 3.012 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1379/0.6042, allocations: 38.52 MB / 484.2 MB, free: 12.27 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6042, allocations: 0 / 484.2 MB, free: 12.27 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0003096/0.6046, allocations: 36 kB / 484.3 MB, free: 12.24 MB / 379.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.004823/0.6094, allocations: 1.932 MB / 486.2 MB, free: 10.25 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.6095, allocations: 15.97 kB / 486.2 MB, free: 10.24 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009337/0.6104, allocations: 284.3 kB / 486.5 MB, free: 9.957 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006071/0.6165, allocations: 1.884 MB / 488.4 MB, free: 8.02 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.6167, allocations: 46.47 kB / 488.4 MB, free: 7.965 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002634/0.6169, allocations: 37.25 kB / 488.5 MB, free: 7.93 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008726/0.6178, allocations: 269.5 kB / 488.7 MB, free: 7.668 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008288/0.6187, allocations: 326.2 kB / 489 MB, free: 7.332 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.6187, allocations: 0 / 489 MB, free: 7.332 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/0.6188, allocations: 4 kB / 489 MB, free: 7.328 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.6188, allocations: 8 kB / 489 MB, free: 7.32 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008027/0.6268, allocations: 3.005 MB / 492 MB, free: 4.23 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007656/0.6276, allocations: 280.3 kB / 492.3 MB, free: 3.941 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/0.628, allocations: 141.6 kB / 492.5 MB, free: 3.797 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.025e-05/0.6281, allocations: 4 kB / 492.5 MB, free: 3.793 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.6281, allocations: 43.16 kB / 492.5 MB, free: 3.742 MB / 379.1 MB Notification: Performance of pre-optimization done (n=37): time 3.106e-06/0.6281, allocations: 0 / 492.5 MB, free: 3.742 MB / 379.1 MB Notification: Performance of matching and sorting (n=48): time 0.006038/0.6342, allocations: 2.019 MB / 494.5 MB, free: 1.645 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.6343, allocations: 90.38 kB / 494.6 MB, free: 1.539 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01722/0.6515, allocations: 4.694 MB / 499.3 MB, free: 12.84 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.6517, allocations: 25.7 kB / 499.3 MB, free: 12.81 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.6534, allocations: 0.8972 MB / 0.4885 GB, free: 11.91 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.6537, allocations: 161.6 kB / 0.4887 GB, free: 11.75 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.6538, allocations: 0 / 0.4887 GB, free: 11.75 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.6539, allocations: 330.8 kB / 0.489 GB, free: 11.42 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003739/0.6543, allocations: 121.1 kB / 0.4891 GB, free: 11.3 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.6548, allocations: 191.7 kB / 0.4893 GB, free: 11.09 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004445/0.6552, allocations: 155.8 kB / 0.4894 GB, free: 10.93 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6552, allocations: 0 / 0.4894 GB, free: 10.93 MB / 395.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.003478/0.6587, allocations: 0.7151 MB / 0.4901 GB, free: 10.21 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.6588, allocations: 8 kB / 0.4901 GB, free: 10.2 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.6588, allocations: 0 / 0.4901 GB, free: 10.2 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000723/0.6596, allocations: 136.8 kB / 0.4903 GB, free: 10.07 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000798/0.6604, allocations: 107.8 kB / 0.4904 GB, free: 9.961 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.6619, allocations: 0.7476 MB / 0.4911 GB, free: 9.188 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.663, allocations: 19.84 kB / 0.4911 GB, free: 9.168 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/0.6631, allocations: 20.06 kB / 0.4911 GB, free: 9.148 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002453/0.6634, allocations: 120.8 kB / 0.4912 GB, free: 9.023 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001913/0.6653, allocations: 0.6107 MB / 0.4918 GB, free: 8.398 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008703/0.6662, allocations: 280.5 kB / 0.4921 GB, free: 8.121 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/0.6687, allocations: 0.7092 MB / 0.4928 GB, free: 7.406 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.6687, allocations: 7.953 kB / 0.4928 GB, free: 7.398 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.6687, allocations: 4 kB / 0.4928 GB, free: 7.395 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.6688, allocations: 3.984 kB / 0.4928 GB, free: 7.391 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003824/0.6726, allocations: 1.624 MB / 0.4944 GB, free: 5.734 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.6727, allocations: 0 / 0.4944 GB, free: 5.734 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.6737, allocations: 95.88 kB / 0.4945 GB, free: 5.641 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000447/0.6741, allocations: 96.73 kB / 0.4946 GB, free: 5.543 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.6742, allocations: 4 kB / 0.4946 GB, free: 5.539 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.6752, allocations: 0.6469 MB / 0.4952 GB, free: 4.867 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.6753, allocations: 4.062 kB / 0.4952 GB, free: 4.863 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.6779, allocations: 1.016 MB / 0.4962 GB, free: 3.816 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/0.6802, allocations: 0.6655 MB / 0.4969 GB, free: 3.129 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005602/0.6808, allocations: 8 kB / 0.4969 GB, free: 3.121 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.6819, allocations: 23.98 kB / 0.4969 GB, free: 3.098 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.6821, allocations: 32.34 kB / 0.4969 GB, free: 3.066 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-05/0.6822, allocations: 16 kB / 0.4969 GB, free: 3.051 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.2745/0.9567, allocations: 3.641 MB / 0.5005 GB, free: 114.2 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.713e-06/0.9567, allocations: 0.9375 kB / 0.5005 GB, free: 114.2 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001893/0.9586, allocations: 312.2 kB / 0.5008 GB, free: 114.2 MB / 395.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 () * 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.00393/0.9626, allocations: 1.884 MB / 0.5026 GB, free: 113.3 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.9637, allocations: 337.4 kB / 0.503 GB, free: 113.3 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.9638, allocations: 1.125 kB / 0.503 GB, free: 113.3 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005136/0.9643, allocations: 189.9 kB / 0.5031 GB, free: 113.3 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.9662, allocations: 171.3 kB / 0.5033 GB, free: 113.3 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.9815, allocations: 5.581 MB / 0.5088 GB, free: 112.3 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00299/0.9845, allocations: 1.865 MB / 0.5106 GB, free: 111.6 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002189/0.9868, allocations: 1.026 MB / 0.5116 GB, free: 111.1 MB / 395.1 MB Notification: Performance of SimCode: time 1.242e-06/0.9868, allocations: 3.938 kB / 0.5116 GB, free: 111.1 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.39/4.377, allocations: 64.24 MB / 0.5743 GB, free: 65.28 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat