Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009232/0.0009234, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009797/0.0009797, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003287/0.0003288, allocations: 6.531 kB / 300.8 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 50.42 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003599/0.116, allocations: 2.768 MB / 354 MB, free: 8.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.1186, allocations: 1.365 MB / 355.4 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002917/0.119, allocations: 4 kB / 355.4 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.1217, allocations: 2.117 MB / 357.5 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005884/0.1223, allocations: 163.5 kB / 357.6 MB, free: 5.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007376/0.1231, allocations: 254.3 kB / 357.9 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001748/0.1248, allocations: 1.467 MB / 359.4 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.1251, allocations: 106.7 kB / 359.5 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004143/0.1255, allocations: 291.1 kB / 359.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003475/0.1259, allocations: 295 kB / 360 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.381e-05/0.1259, allocations: 20 kB / 360.1 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001756/0.1261, allocations: 51.94 kB / 360.1 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000549/0.1267, allocations: 0.8376 MB / 360.9 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002692/0.127, allocations: 384.3 kB / 361.3 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.1286, allocations: 2.085 MB / 363.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.1287, allocations: 8 kB / 363.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1287, allocations: 0 / 363.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.975e-05/0.1287, allocations: 0 / 363.4 MB, free: 15.35 MB / 302.1 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.004054/0.1328, allocations: 2.434 MB / 365.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1328, allocations: 8.031 kB / 365.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.133, allocations: 70.53 kB / 365.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004561/0.1334, allocations: 288.2 kB / 366.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003268/0.1367, allocations: 1.689 MB / 367.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.1368, allocations: 62.7 kB / 368 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00021/0.1371, allocations: 43.98 kB / 368 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007213/0.1378, allocations: 391 kB / 368.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.1378, allocations: 3.906 kB / 368.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.403e-05/0.1379, allocations: 19.95 kB / 368.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1379, allocations: 8 kB / 368.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006685/0.1386, allocations: 335.7 kB / 368.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004839/0.1434, allocations: 2.915 MB / 371.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/0.1441, allocations: 320.9 kB / 372 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.1442, allocations: 4 kB / 372 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.1442, allocations: 38.56 kB / 372 MB, free: 6.473 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.214e-06/0.1442, allocations: 0 / 372 MB, free: 6.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005157/0.1494, allocations: 2.414 MB / 374.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.1495, allocations: 81.55 kB / 374.5 MB, free: 3.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006826/0.1563, allocations: 5.442 MB / 379.9 MB, free: 14.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.1564, allocations: 37.73 kB / 380 MB, free: 14.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.1575, allocations: 1.207 MB / 381.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.1577, allocations: 165.5 kB / 381.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.1577, allocations: 12 kB / 381.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.1578, allocations: 326 kB / 381.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003341/0.1581, allocations: 137.1 kB / 381.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.1585, allocations: 217.7 kB / 382 MB, free: 12.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1588, allocations: 176.7 kB / 382.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1589, allocations: 0 / 382.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0013/0.1602, allocations: 0.6841 MB / 382.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.1602, allocations: 4 kB / 382.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1602, allocations: 4 kB / 382.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.1602, allocations: 4 kB / 382.9 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.1608, allocations: 127.8 kB / 383 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.1608, allocations: 4 kB / 383 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005606/0.1613, allocations: 19.89 kB / 383 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.1614, allocations: 28.02 kB / 383.1 MB, free: 11.26 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001154/0.1625, allocations: 0.9191 MB / 384 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.1629, allocations: 264.5 kB / 384.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.1644, allocations: 0.798 MB / 385.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.1644, allocations: 4 kB / 385.1 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1644, allocations: 4 kB / 385.1 MB, free: 9.258 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1645, allocations: 3.984 kB / 385.1 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.1663, allocations: 1.465 MB / 386.5 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1663, allocations: 0 / 386.5 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.1667, allocations: 99.88 kB / 386.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003583/0.1671, allocations: 100.7 kB / 386.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.1671, allocations: 12 kB / 386.7 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005885/0.1677, allocations: 0.6304 MB / 387.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1677, allocations: 0 / 387.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.1698, allocations: 1.11 MB / 388.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.1711, allocations: 497.5 kB / 389 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.1714, allocations: 11.98 kB / 389 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005095/0.1719, allocations: 20 kB / 389 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.172, allocations: 28.39 kB / 389 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.172, allocations: 15.98 kB / 389 MB, free: 5.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.006943/0.179, allocations: 3.989 MB / 393 MB, free: 1.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.179, allocations: 0 / 393 MB, free: 1.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001162/0.1802, allocations: 208 kB / 393.2 MB, free: 0.9648 MB / 318.1 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 () * Number of clocked 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.003109/0.1833, allocations: 2.002 MB / 395.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007985/0.1841, allocations: 388.9 kB / 395.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1842, allocations: 0 / 395.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004397/0.1846, allocations: 214.8 kB / 395.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.1857, allocations: 183.3 kB / 396 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0477/0.2334, allocations: 20.83 MB / 416.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/0.2354, allocations: 1.861 MB / 418.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000741/0.2362, allocations: 267.6 kB / 418.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/0.2375, allocations: 0.9366 MB / 419.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2375, allocations: 4 kB / 419.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2497/0.4872, allocations: 39.6 MB / 459.5 MB, free: 42.14 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001632/0.4874, allocations: 294.7 kB / 459.8 MB, free: 41.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.312, allocations: 0 / 459.8 MB, free: 41.78 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat