Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001668/0.001668, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009281/0.0009282, allocations: 91.28 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.911e-05, allocations: 11.97 kB / 350.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3272/0.4291, allocations: 93.83 MB / 496 MB, free: 11.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.4294, allocations: 85.88 kB / 496 MB, free: 11.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04527/0.4747, allocations: 15.99 MB / 0.5 GB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4747, allocations: 0 / 0.5 GB, free: 13.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.986e-05/0.4748, allocations: 12 kB / 0.5001 GB, free: 13.21 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001537/0.4763, allocations: 0.8631 MB / 0.5009 GB, free: 12.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.4764, allocations: 8.031 kB / 0.5009 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.4765, allocations: 98.52 kB / 0.501 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.4767, allocations: 91.05 kB / 0.5011 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007051/0.4774, allocations: 498.5 kB / 0.5016 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.914e-05/0.4775, allocations: 75.02 kB / 0.5016 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.4777, allocations: 63.89 kB / 0.5017 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009205/0.4787, allocations: 0.5747 MB / 0.5023 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.4787, allocations: 0 / 0.5023 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.505e-05/0.4787, allocations: 24 kB / 0.5023 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.4788, allocations: 16 kB / 0.5023 GB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007969/0.4796, allocations: 481.1 kB / 0.5027 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003197/0.4828, allocations: 2.325 MB / 0.505 GB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.4834, allocations: 432.7 kB / 0.5054 GB, free: 7.457 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.4838, allocations: 239.1 kB / 0.5057 GB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.4839, allocations: 4 kB / 0.5057 GB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.4839, allocations: 46.56 kB / 0.5057 GB, free: 7.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.4839, allocations: 0 / 0.5057 GB, free: 7.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01061/0.4945, allocations: 3.022 MB / 0.5087 GB, free: 4.078 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.4946, allocations: 85.61 kB / 0.5087 GB, free: 3.977 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006385/0.4952, allocations: 483.8 kB / 0.5092 GB, free: 3.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.523e-05/0.4953, allocations: 37.7 kB / 0.5092 GB, free: 3.457 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.4955, allocations: 312.3 kB / 0.5095 GB, free: 3.148 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.4957, allocations: 206.6 kB / 0.5097 GB, free: 2.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.4958, allocations: 19.94 kB / 0.5098 GB, free: 2.926 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4959, allocations: 370.7 kB / 0.5101 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.4963, allocations: 217.5 kB / 0.5103 GB, free: 2.344 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.4967, allocations: 316.9 kB / 0.5106 GB, free: 2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.4972, allocations: 259.2 kB / 0.5109 GB, free: 1.746 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4972, allocations: 0 / 0.5109 GB, free: 1.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00679/0.504, allocations: 1.791 MB / 0.5126 GB, free: 15.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.5041, allocations: 8 kB / 0.5126 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.5041, allocations: 0 / 0.5126 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006286/0.5104, allocations: 1.168 MB / 0.5138 GB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005159/0.5109, allocations: 95.81 kB / 0.5138 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/0.5233, allocations: 5.769 MB / 0.5195 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007126/0.5241, allocations: 44.03 kB / 0.5195 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-05/0.5241, allocations: 27.98 kB / 0.5196 GB, free: 8.688 MB / 394.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.0001514/0.5243, allocations: 132.9 kB / 0.5197 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.5244, allocations: 63.25 kB / 0.5197 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.5259, allocations: 0.7595 MB / 0.5205 GB, free: 7.715 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.526, allocations: 11.94 kB / 0.5205 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.526, allocations: 4 kB / 0.5205 GB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.526, allocations: 0 / 0.5205 GB, free: 7.699 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.5293, allocations: 1.835 MB / 0.5223 GB, free: 5.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.5293, allocations: 0 / 0.5223 GB, free: 5.801 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005374/0.5299, allocations: 111.9 kB / 0.5224 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001623/0.5315, allocations: 337.2 kB / 0.5227 GB, free: 5.359 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-05/0.5316, allocations: 19.98 kB / 0.5227 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004281/0.5359, allocations: 2.799 MB / 0.5255 GB, free: 2.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.5359, allocations: 9.188 kB / 0.5255 GB, free: 2.402 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.5383, allocations: 1.271 MB / 0.5267 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.5386, allocations: 208.5 kB / 0.5269 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.569e-05/0.5387, allocations: 12 kB / 0.5269 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005968/0.5393, allocations: 59.89 kB / 0.527 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5395, allocations: 44.5 kB / 0.527 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.272e-05/0.5395, allocations: 19.98 kB / 0.527 GB, free: 0.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004489/0.54, allocations: 385.6 kB / 0.5274 GB, free: 384 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.54, allocations: 0 / 0.5274 GB, free: 384 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008304/0.5408, allocations: 215.9 kB / 0.5276 GB, free: 168 kB / 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.002869/0.5437, allocations: 1.957 MB / 0.5295 GB, free: 14.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.5452, allocations: 0.8173 MB / 0.5303 GB, free: 13.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5452, allocations: 4 kB / 0.5303 GB, free: 13.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007169/0.5459, allocations: 494 kB / 0.5308 GB, free: 12.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.5465, allocations: 76.75 kB / 0.5309 GB, free: 12.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.549, allocations: 1.239 MB / 0.5321 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.5494, allocations: 0.9199 MB / 0.533 GB, free: 10.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002939/0.5497, allocations: 64.75 kB / 0.533 GB, free: 10.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003577/0.5501, allocations: 231.4 kB / 0.5333 GB, free: 10.26 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5501, allocations: 0.6562 kB / 0.5333 GB, free: 10.26 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05426/0.6044, allocations: 17.91 MB / 0.5508 GB, free: 8.766 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003441/0.6048, allocations: 221.5 kB / 0.551 GB, free: 8.539 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.314/2.918, allocations: 0 / 0.551 GB, free: 8.539 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat