Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.001103/0.001103, allocations: 180 kB / 17.01 MB, free: 5.125 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.269/1.269, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0007947/0.0007947, allocations: 93.64 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002596, allocations: 12 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1918, allocations: 47.56 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09306/0.2849, allocations: 90.08 MB / 466 MB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.2851, allocations: 83.95 kB / 466.1 MB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04279/0.3279, allocations: 15.55 MB / 481.6 MB, free: 6.848 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.328, allocations: 0 / 481.6 MB, free: 6.848 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.965e-05/0.328, allocations: 12 kB / 481.6 MB, free: 6.836 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001987/0.33, allocations: 0.9629 MB / 482.6 MB, free: 5.824 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.33, allocations: 16.02 kB / 482.6 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.3302, allocations: 98.52 kB / 482.7 MB, free: 5.703 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.3304, allocations: 83 kB / 482.8 MB, free: 5.621 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007194/0.3311, allocations: 0.4901 MB / 483.3 MB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.711e-05/0.3312, allocations: 79 kB / 483.4 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.3314, allocations: 60 kB / 483.4 MB, free: 4.945 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3325, allocations: 0.6019 MB / 484 MB, free: 4.324 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.3325, allocations: 0 / 484 MB, free: 4.324 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/0.3326, allocations: 24 kB / 484 MB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.3326, allocations: 20 kB / 484.1 MB, free: 4.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.3337, allocations: 0.5282 MB / 484.6 MB, free: 3.754 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.3368, allocations: 2.331 MB / 486.9 MB, free: 1.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009287/0.3378, allocations: 494.2 kB / 487.4 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.3378, allocations: 8 kB / 487.4 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.3379, allocations: 38.56 kB / 487.5 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.603e-06/0.3379, allocations: 0 / 487.5 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.01308/0.351, allocations: 3.702 MB / 491.2 MB, free: 12.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.351, allocations: 89.62 kB / 491.2 MB, free: 12.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/0.3516, allocations: 485.2 kB / 491.7 MB, free: 12.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.3517, allocations: 33.7 kB / 491.8 MB, free: 12.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3519, allocations: 316.3 kB / 492.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.352, allocations: 204.9 kB / 492.3 MB, free: 11.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.3521, allocations: 19.98 kB / 492.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3522, allocations: 366.8 kB / 492.6 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005332/0.3527, allocations: 249.2 kB / 492.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.3533, allocations: 351.5 kB / 493.2 MB, free: 10.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005733/0.3539, allocations: 290.1 kB / 493.5 MB, free: 10.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3539, allocations: 0 / 493.5 MB, free: 10.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001424/0.3553, allocations: 0.7452 MB / 494.3 MB, free: 9.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3554, allocations: 12.06 kB / 494.3 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3554, allocations: 3.953 kB / 494.3 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.3555, allocations: 32.84 kB / 494.3 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008058/0.3563, allocations: 175.8 kB / 494.5 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009055/0.3572, allocations: 1.327 MB / 495.8 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000564/0.3578, allocations: 44.05 kB / 495.8 MB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.3579, allocations: 27.98 kB / 495.9 MB, free: 8.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.3581, allocations: 201.7 kB / 496.1 MB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.3583, allocations: 59.25 kB / 496.1 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.36, allocations: 0.8689 MB / 497 MB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.36, allocations: 11.98 kB / 497 MB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.36, allocations: 0 / 497 MB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3601, allocations: 7.984 kB / 497 MB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.3636, allocations: 1.877 MB / 498.9 MB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3636, allocations: 8 kB / 498.9 MB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.3642, allocations: 107.9 kB / 499 MB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002492/0.3667, allocations: 0.5079 MB / 499.5 MB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/0.3667, allocations: 19.98 kB / 499.5 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004937/0.3717, allocations: 3.014 MB / 0.4908 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3717, allocations: 0 / 0.4908 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1443/0.516, allocations: 1.415 MB / 0.4921 GB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003884/0.5164, allocations: 207.5 kB / 0.4923 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.833e-05/0.5165, allocations: 14.86 kB / 0.4924 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006493/0.5172, allocations: 51.41 kB / 0.4924 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.5173, allocations: 55.2 kB / 0.4925 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.5174, allocations: 18.3 kB / 0.4925 GB, free: 106.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005172/0.5179, allocations: 388.3 kB / 0.4929 GB, free: 106.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5179, allocations: 3.875 kB / 0.4929 GB, free: 106.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000838/0.5188, allocations: 194.5 kB / 0.493 GB, free: 106.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003114/0.5219, allocations: 2.085 MB / 0.4951 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.5232, allocations: 0.7471 MB / 0.4958 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5232, allocations: 1.125 kB / 0.4958 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007905/0.524, allocations: 0.5316 MB / 0.4963 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.5245, allocations: 80.84 kB / 0.4964 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006509/0.5311, allocations: 5.682 MB / 0.502 GB, free: 102.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.5314, allocations: 0.9138 MB / 0.5028 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003591/0.5318, allocations: 71.42 kB / 0.5029 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.5321, allocations: 233.5 kB / 0.5031 GB, free: 101.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5322, allocations: 0 / 0.5031 GB, free: 101.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.5582, allocations: 15.03 MB / 0.5178 GB, free: 96.97 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.5584, allocations: 260.4 kB / 0.5181 GB, free: 96.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.1/2.658, allocations: 0 / 0.5181 GB, free: 96.62 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat