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.002228/0.002228, allocations: 181.2 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001132, allocations: 96.36 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003736/0.0003736, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3258, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.4603, allocations: 83.94 MB / 458.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003525/0.4607, allocations: 91.94 kB / 458.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1398/0.6005, allocations: 39.27 MB / 497.9 MB, free: 5.035 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6006, allocations: 0 / 497.9 MB, free: 5.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003453/0.6009, allocations: 32 kB / 498 MB, free: 5.004 MB / 378.7 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.0069/0.6078, allocations: 2.581 MB / 0.4888 GB, free: 2.355 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.6079, allocations: 8.031 kB / 0.4888 GB, free: 2.348 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002356/0.6082, allocations: 74.53 kB / 0.4889 GB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008035/0.609, allocations: 288.3 kB / 0.4892 GB, free: 1.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005927/0.6149, allocations: 1.915 MB / 0.491 GB, free: 12 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.258/0.873, allocations: 56.25 kB / 0.4911 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004029/0.8734, allocations: 42.88 kB / 0.4911 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.8747, allocations: 391.7 kB / 0.4915 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.8748, allocations: 1.125 kB / 0.4915 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.8748, allocations: 16.84 kB / 0.4915 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.8749, allocations: 8.688 kB / 0.4915 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.8762, allocations: 329.3 kB / 0.4918 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007415/0.8836, allocations: 3.097 MB / 0.4949 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.8848, allocations: 328 kB / 0.4952 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.8848, allocations: 6.844 kB / 0.4952 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.8849, allocations: 37.47 kB / 0.4952 GB, free: 100.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.036e-06/0.8849, allocations: 0 / 0.4952 GB, free: 100.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.009169/0.8941, allocations: 2.543 MB / 0.4977 GB, free: 99.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.8942, allocations: 84.61 kB / 0.4978 GB, free: 99.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01563/0.9098, allocations: 4.89 MB / 0.5026 GB, free: 98.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.91, allocations: 32.2 kB / 0.5026 GB, free: 98.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001313/0.9113, allocations: 0.9241 MB / 0.5035 GB, free: 97.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.9115, allocations: 165.7 kB / 0.5037 GB, free: 97.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.9116, allocations: 10.72 kB / 0.5037 GB, free: 97.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.406e-05/0.9116, allocations: 335.1 kB / 0.504 GB, free: 97.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005406/0.9122, allocations: 140.2 kB / 0.5041 GB, free: 97.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005428/0.9128, allocations: 212.7 kB / 0.5043 GB, free: 97.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.9133, allocations: 166.4 kB / 0.5045 GB, free: 97.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.9134, allocations: 0 / 0.5045 GB, free: 97.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001285/0.9147, allocations: 452.2 kB / 0.5049 GB, free: 96.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.9147, allocations: 4.188 kB / 0.5049 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.9147, allocations: 7.422 kB / 0.5049 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.265e-05/0.9147, allocations: 12.3 kB / 0.5049 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008993/0.9157, allocations: 116.6 kB / 0.505 GB, free: 96.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.9157, allocations: 3.688 kB / 0.505 GB, free: 96.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/0.917, allocations: 27.02 kB / 0.5051 GB, free: 96.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.093e-05/0.9171, allocations: 25.47 kB / 0.5051 GB, free: 96.82 MB / 378.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.001827/0.9189, allocations: 0.9168 MB / 0.506 GB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000873/0.9198, allocations: 276.8 kB / 0.5063 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/0.9222, allocations: 0.7779 MB / 0.507 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.9222, allocations: 4.594 kB / 0.507 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.9223, allocations: 0 / 0.507 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.9223, allocations: 7.422 kB / 0.507 GB, free: 96.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003066/0.9253, allocations: 1.71 MB / 0.5087 GB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.9254, allocations: 0 / 0.5087 GB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/0.9262, allocations: 96.34 kB / 0.5088 GB, free: 95.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004824/0.9267, allocations: 88.89 kB / 0.5089 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-05/0.9268, allocations: 14.62 kB / 0.5089 GB, free: 95.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008345/0.9277, allocations: 0.6427 MB / 0.5095 GB, free: 94.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.9277, allocations: 0 / 0.5095 GB, free: 94.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.9304, allocations: 1.094 MB / 0.5106 GB, free: 94.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/0.9321, allocations: 0.6751 MB / 0.5112 GB, free: 93.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004021/0.9325, allocations: 17.72 kB / 0.5113 GB, free: 93.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009232/0.9335, allocations: 31.36 kB / 0.5113 GB, free: 93.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.9336, allocations: 29.33 kB / 0.5113 GB, free: 93.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.9336, allocations: 14.12 kB / 0.5113 GB, free: 93.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008146/0.9418, allocations: 3.842 MB / 0.5151 GB, free: 92.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.9418, allocations: 3.719 kB / 0.5151 GB, free: 92.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001812/0.9437, allocations: 328.9 kB / 0.5154 GB, free: 92.43 MB / 378.7 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.004125/0.9478, allocations: 2.036 MB / 0.5174 GB, free: 91.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.949, allocations: 378.6 kB / 0.5177 GB, free: 90.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.9491, allocations: 0 / 0.5177 GB, free: 90.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006858/0.9498, allocations: 217 kB / 0.518 GB, free: 90.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.9515, allocations: 185.5 kB / 0.5181 GB, free: 90.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05186/1.003, allocations: 21.21 MB / 0.5388 GB, free: 71.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001953/1.005, allocations: 1.855 MB / 0.5407 GB, free: 70.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002004/1.007, allocations: 1.03 MB / 0.5417 GB, free: 69.08 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/1.007, allocations: 0 / 0.5417 GB, free: 69.08 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.281/4.288, allocations: 62.48 MB / 0.6027 GB, free: 6.531 MB / 378.7 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