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.001077/0.001077, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.408/1.408, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007894/0.0007894, allocations: 93.92 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.972e-05/2.976e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07691/0.07696, allocations: 47.56 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/0.3544, allocations: 89.99 MB / 460.1 MB, free: 3.383 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.3546, allocations: 78.83 kB / 460.2 MB, free: 3.344 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04296/0.3976, allocations: 15.54 MB / 475.7 MB, free: 5.121 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3976, allocations: 8 kB / 475.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.755e-05/0.3977, allocations: 12 kB / 475.7 MB, free: 5.102 MB / 346.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.001482/0.3992, allocations: 0.8582 MB / 476.6 MB, free: 4.195 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.3992, allocations: 12.03 kB / 476.6 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001113/0.3993, allocations: 94.52 kB / 476.7 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.3995, allocations: 79.06 kB / 476.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006593/0.4001, allocations: 498 kB / 477.3 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.4002, allocations: 75 kB / 477.3 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001741/0.4004, allocations: 64 kB / 477.4 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000891/0.4013, allocations: 0.5669 MB / 478 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.4013, allocations: 7.922 kB / 478 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.222e-05/0.4014, allocations: 24 kB / 478 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.4014, allocations: 12 kB / 478 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007989/0.4022, allocations: 477.2 kB / 478.5 MB, free: 2.238 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003122/0.4053, allocations: 2.33 MB / 480.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.406, allocations: 437.7 kB / 481.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003826/0.4064, allocations: 235.1 kB / 481.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.4064, allocations: 12 kB / 481.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.4065, allocations: 42.5 kB / 481.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.964e-06/0.4065, allocations: 0 / 481.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.01032/0.4168, allocations: 3.019 MB / 484.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.4169, allocations: 89.61 kB / 484.6 MB, free: 11.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.4175, allocations: 487.8 kB / 485.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/0.4176, allocations: 37.7 kB / 485.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.4178, allocations: 300.4 kB / 485.4 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.418, allocations: 216.8 kB / 485.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.352e-05/0.418, allocations: 15.94 kB / 485.7 MB, free: 10.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4182, allocations: 374.7 kB / 486 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.4186, allocations: 225.5 kB / 486.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004116/0.419, allocations: 308.9 kB / 486.5 MB, free: 9.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.4194, allocations: 267.2 kB / 486.8 MB, free: 9.625 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4194, allocations: 0 / 486.8 MB, free: 9.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006537/0.426, allocations: 1.787 MB / 488.6 MB, free: 7.824 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.426, allocations: 11.44 kB / 488.6 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.426, allocations: 4 kB / 488.6 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005948/0.432, allocations: 1.168 MB / 489.8 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.4325, allocations: 91.83 kB / 489.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/0.4446, allocations: 5.772 MB / 495.6 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00068/0.4453, allocations: 48.05 kB / 495.7 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.4453, allocations: 23.98 kB / 495.7 MB, free: 0.5547 MB / 362.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 () * 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.000183/0.4455, allocations: 132.9 kB / 495.8 MB, free: 428 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.4456, allocations: 59.28 kB / 495.9 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.447, allocations: 0.771 MB / 496.7 MB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.4471, allocations: 11.95 kB / 496.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.4471, allocations: 0 / 496.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.4471, allocations: 3.984 kB / 496.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003102/0.4502, allocations: 1.82 MB / 498.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4502, allocations: 4 kB / 498.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.4507, allocations: 111.9 kB / 498.6 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.4523, allocations: 344.5 kB / 499 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/0.4523, allocations: 12 kB / 499 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/0.4562, allocations: 2.805 MB / 0.49 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4562, allocations: 0 / 0.49 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00223/0.4584, allocations: 1.275 MB / 0.4913 GB, free: 8.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.4587, allocations: 208.4 kB / 0.4915 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.926e-05/0.4588, allocations: 16 kB / 0.4915 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005762/0.4594, allocations: 47.97 kB / 0.4915 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/0.4595, allocations: 60.36 kB / 0.4916 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-05/0.4596, allocations: 20 kB / 0.4916 GB, free: 8.613 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004304/0.46, allocations: 377.6 kB / 0.492 GB, free: 8.246 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.46, allocations: 0 / 0.492 GB, free: 8.246 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007987/0.4608, allocations: 224 kB / 0.4922 GB, free: 8.027 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.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.002603/0.4634, allocations: 1.951 MB / 0.4941 GB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.4648, allocations: 0.814 MB / 0.4949 GB, free: 5.207 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4648, allocations: 0 / 0.4949 GB, free: 5.207 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000713/0.4655, allocations: 494.2 kB / 0.4953 GB, free: 4.711 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.466, allocations: 86 kB / 0.4954 GB, free: 4.629 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.4683, allocations: 1.231 MB / 0.4966 GB, free: 3.355 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.4687, allocations: 0.9199 MB / 0.4975 GB, free: 2.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002767/0.469, allocations: 64.75 kB / 0.4976 GB, free: 2.344 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.4694, allocations: 227.3 kB / 0.4978 GB, free: 2.121 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4694, allocations: 7.938 kB / 0.4978 GB, free: 2.113 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03227/0.5016, allocations: 17.9 MB / 0.5153 GB, free: 188 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.5019, allocations: 212.6 kB / 0.5155 GB, free: 15.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.118/2.62, allocations: 0 / 0.5155 GB, free: 15.96 MB / 410.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