Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 174.3 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008803/0.0008803, allocations: 92.62 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.929e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09923, allocations: 50.44 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3425/0.4417, allocations: 92.35 MB / 479.9 MB, free: 2.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.442, allocations: 83.95 kB / 480 MB, free: 2.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04412/0.4861, allocations: 15.68 MB / 495.7 MB, free: 2.484 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4862, allocations: 0 / 495.7 MB, free: 2.484 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.457e-05/0.4862, allocations: 20 kB / 495.7 MB, free: 2.465 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.001603/0.4878, allocations: 0.8505 MB / 496.6 MB, free: 1.566 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4879, allocations: 16.02 kB / 496.6 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.488, allocations: 83.06 kB / 496.7 MB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007069/0.4887, allocations: 492.3 kB / 497.1 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.292e-05/0.4888, allocations: 55 kB / 497.2 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.489, allocations: 43.98 kB / 497.2 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007858/0.4898, allocations: 454.5 kB / 497.7 MB, free: 408 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008255/0.4906, allocations: 0.4901 MB / 498.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.4907, allocations: 0 / 498.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-05/0.4907, allocations: 3.984 kB / 498.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.4908, allocations: 16 kB / 498.2 MB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.494, allocations: 2.226 MB / 0.4887 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006019/0.4946, allocations: 409.7 kB / 0.4891 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/0.495, allocations: 230.1 kB / 0.4893 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.4951, allocations: 4 kB / 0.4893 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.4951, allocations: 42.56 kB / 0.4893 GB, free: 12.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.175e-06/0.4951, allocations: 0 / 0.4893 GB, free: 12.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.008608/0.5037, allocations: 2.54 MB / 0.4918 GB, free: 10.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.5038, allocations: 81.67 kB / 0.4919 GB, free: 10.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006435/0.5045, allocations: 437.3 kB / 0.4923 GB, free: 9.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.648e-05/0.5045, allocations: 25.7 kB / 0.4923 GB, free: 9.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.5047, allocations: 316.2 kB / 0.4926 GB, free: 9.367 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.5049, allocations: 204.9 kB / 0.4928 GB, free: 9.164 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.505, allocations: 3.938 kB / 0.4928 GB, free: 9.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.5051, allocations: 366.8 kB / 0.4932 GB, free: 8.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003602/0.5055, allocations: 209.5 kB / 0.4934 GB, free: 8.586 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/0.5059, allocations: 299.5 kB / 0.4937 GB, free: 8.266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.5063, allocations: 246.1 kB / 0.4939 GB, free: 8.027 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5063, allocations: 3.938 kB / 0.4939 GB, free: 8.023 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006737/0.513, allocations: 1.721 MB / 0.4956 GB, free: 6.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.043e-05/0.5131, allocations: 8.125 kB / 0.4956 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.5132, allocations: 4 kB / 0.4956 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006092/0.5193, allocations: 1.16 MB / 0.4967 GB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.5198, allocations: 95.83 kB / 0.4968 GB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.5316, allocations: 5.644 MB / 0.5023 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/0.5323, allocations: 39.88 kB / 0.5024 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-05/0.5324, allocations: 27.98 kB / 0.5024 GB, free: 15.17 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002276/0.5326, allocations: 117 kB / 0.5025 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002557/0.5352, allocations: 0.8816 MB / 0.5034 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.5354, allocations: 59.34 kB / 0.5034 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.5367, allocations: 0.7048 MB / 0.5041 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.5367, allocations: 8 kB / 0.5041 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.5368, allocations: 0 / 0.5041 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.5368, allocations: 7.969 kB / 0.5041 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003205/0.54, allocations: 1.699 MB / 0.5058 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.54, allocations: 0 / 0.5058 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005196/0.5405, allocations: 111.9 kB / 0.5059 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.5421, allocations: 332.5 kB / 0.5062 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.5422, allocations: 7.984 kB / 0.5062 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004089/0.5462, allocations: 2.737 MB / 0.5089 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5463, allocations: 0 / 0.5089 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.5486, allocations: 1.22 MB / 0.5101 GB, free: 7.074 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.5489, allocations: 204.4 kB / 0.5103 GB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.999e-05/0.549, allocations: 0 / 0.5103 GB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/0.5496, allocations: 39.97 kB / 0.5103 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.5498, allocations: 44.48 kB / 0.5104 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.712e-05/0.5498, allocations: 23.98 kB / 0.5104 GB, free: 6.746 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004169/0.5502, allocations: 339 kB / 0.5107 GB, free: 6.418 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5502, allocations: 0 / 0.5107 GB, free: 6.418 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009131/0.5512, allocations: 200.1 kB / 0.5109 GB, free: 6.223 MB / 394.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.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete 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.002617/0.5538, allocations: 1.886 MB / 0.5127 GB, free: 4.305 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.5553, allocations: 0.7644 MB / 0.5135 GB, free: 3.527 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5553, allocations: 0 / 0.5135 GB, free: 3.527 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000724/0.556, allocations: 476.3 kB / 0.5139 GB, free: 3.055 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006188/0.5567, allocations: 57.95 kB / 0.514 GB, free: 3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.5593, allocations: 1.178 MB / 0.5152 GB, free: 1.781 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.5598, allocations: 0.9194 MB / 0.5161 GB, free: 0.832 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002954/0.5601, allocations: 56.55 kB / 0.5161 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.5604, allocations: 235.3 kB / 0.5163 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5605, allocations: 0 / 0.5163 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04099/0.6014, allocations: 15.76 MB / 0.5317 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.6017, allocations: 181.7 kB / 0.5319 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.227/2.829, allocations: 0 / 0.5319 GB, free: 0.6992 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat