Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001022/0.001022, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.634/1.634, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008286/0.0008288, allocations: 78.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.806e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09673, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3643/0.4611, allocations: 83.42 MB / 446.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/0.4615, allocations: 82.77 kB / 446.7 MB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08407/0.5456, allocations: 38.52 MB / 485.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.5457, allocations: 0 / 485.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001512/0.5458, allocations: 35.98 kB / 485.2 MB, free: 8.941 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002907/0.5487, allocations: 1.931 MB / 487.2 MB, free: 7.086 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.5488, allocations: 12.02 kB / 487.2 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004229/0.5492, allocations: 292.3 kB / 487.5 MB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002924/0.5522, allocations: 1.881 MB / 489.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.5522, allocations: 46.48 kB / 489.4 MB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.5524, allocations: 35.92 kB / 489.4 MB, free: 5.078 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004509/0.5529, allocations: 274.2 kB / 489.7 MB, free: 4.902 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.5534, allocations: 324.2 kB / 490 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.5534, allocations: 0 / 490 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.789e-05/0.5534, allocations: 0 / 490 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.5535, allocations: 12 kB / 490 MB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004565/0.5581, allocations: 3.001 MB / 493 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.5585, allocations: 277.5 kB / 493.3 MB, free: 2.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.5587, allocations: 141.6 kB / 493.4 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.5587, allocations: 8 kB / 493.4 MB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.5588, allocations: 42.84 kB / 493.5 MB, free: 1.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 1.953e-06/0.5588, allocations: 0 / 493.5 MB, free: 1.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.003499/0.5623, allocations: 2.024 MB / 495.5 MB, free: 32 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.5623, allocations: 81.55 kB / 495.6 MB, free: 15.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008569/0.5709, allocations: 4.691 MB / 0.4886 GB, free: 11.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.403e-05/0.571, allocations: 29.7 kB / 0.4886 GB, free: 11.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.572, allocations: 1.156 MB / 0.4897 GB, free: 10.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.5722, allocations: 161.6 kB / 0.4899 GB, free: 10.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/0.5722, allocations: 4 kB / 0.4899 GB, free: 10.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.5723, allocations: 326 kB / 0.4902 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.5727, allocations: 117.1 kB / 0.4903 GB, free: 10.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.5729, allocations: 195.8 kB / 0.4905 GB, free: 9.832 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002409/0.5732, allocations: 150 kB / 0.4906 GB, free: 9.684 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5732, allocations: 0 / 0.4906 GB, free: 9.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002194/0.5754, allocations: 0.9619 MB / 0.4916 GB, free: 8.711 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.5754, allocations: 8 kB / 0.4916 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5754, allocations: 0 / 0.4916 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/0.5758, allocations: 140.8 kB / 0.4917 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.5762, allocations: 99.84 kB / 0.4918 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007486/0.577, allocations: 0.7553 MB / 0.4925 GB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004885/0.5775, allocations: 23.97 kB / 0.4926 GB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/0.5777, allocations: 23.92 kB / 0.4926 GB, free: 7.637 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.5779, allocations: 120.8 kB / 0.4927 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008956/0.5788, allocations: 0.6068 MB / 0.4933 GB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003586/0.5791, allocations: 280.5 kB / 0.4936 GB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.5805, allocations: 0.712 MB / 0.4943 GB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.5805, allocations: 7.953 kB / 0.4943 GB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.5805, allocations: 4 kB / 0.4943 GB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.5805, allocations: 3.984 kB / 0.4943 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.5826, allocations: 1.621 MB / 0.4959 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.5826, allocations: 0 / 0.4959 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.5831, allocations: 99.88 kB / 0.4959 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002375/0.5833, allocations: 88.8 kB / 0.496 GB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.5834, allocations: 4 kB / 0.496 GB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005552/0.5839, allocations: 0.6616 MB / 0.4967 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5839, allocations: 0 / 0.4967 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.5853, allocations: 1.008 MB / 0.4977 GB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.5864, allocations: 0.6655 MB / 0.4983 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/0.5866, allocations: 8.062 kB / 0.4983 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006066/0.5873, allocations: 27.98 kB / 0.4984 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.315e-05/0.5873, allocations: 28.34 kB / 0.4984 GB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.554e-05/0.5874, allocations: 19.98 kB / 0.4984 GB, free: 1.527 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004997/0.5924, allocations: 3.642 MB / 0.502 GB, free: 13.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5924, allocations: 4 kB / 0.502 GB, free: 13.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009251/0.5933, allocations: 303.9 kB / 0.5022 GB, free: 13.59 MB / 394.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 () * 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.002628/0.596, allocations: 1.892 MB / 0.5041 GB, free: 11.67 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000653/0.5966, allocations: 339.6 kB / 0.5044 GB, free: 11.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.5967, allocations: 8.062 kB / 0.5044 GB, free: 11.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002951/0.597, allocations: 185.6 kB / 0.5046 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.598, allocations: 167.6 kB / 0.5048 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008837/0.6069, allocations: 5.39 MB / 0.51 GB, free: 5.527 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.6085, allocations: 1.868 MB / 0.5119 GB, free: 3.625 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009531/0.6094, allocations: 383.5 kB / 0.5122 GB, free: 3.246 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001293/0.6107, allocations: 1.011 MB / 0.5132 GB, free: 2.234 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6107, allocations: 4 kB / 0.5132 GB, free: 2.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2982/0.909, allocations: 39.39 MB / 0.5517 GB, free: 121.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.9092, allocations: 221.8 kB / 0.5519 GB, free: 121.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.314/4.223, allocations: 0 / 0.5519 GB, free: 121.1 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat