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/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 3.2.3+maint.om/package.mo", uses=false) 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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 94.66 kB / 16.95 MB, free: 6.891 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.001362/0.001362, allocations: 185.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005205/0.0005206, allocations: 16 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1193, allocations: 47.57 MB / 328.5 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005339/0.1247, allocations: 3.729 MB / 332.2 MB, free: 248 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.1282, allocations: 1.533 MB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006877/0.129, allocations: 11.94 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006018/0.1296, allocations: 91.3 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001482/0.1311, allocations: 290.2 kB / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.1319, allocations: 139.8 kB / 334.2 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.1334, allocations: 0.8692 MB / 335.1 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004772/0.1339, allocations: 182 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007006/0.1346, allocations: 306.8 kB / 335.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007692/0.1354, allocations: 362.5 kB / 335.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.1357, allocations: 40 kB / 336 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.1362, allocations: 163.9 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1364, allocations: 143.3 kB / 336.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.1367, allocations: 157.3 kB / 336.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.1378, allocations: 0.8844 MB / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1378, allocations: 0 / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1378, allocations: 0 / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.468e-05/0.1379, allocations: 4 kB / 337.3 MB, free: 11.07 MB / 286.1 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.002722/0.1406, allocations: 0.9896 MB / 338.3 MB, free: 10.03 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.1407, allocations: 8.031 kB / 338.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.1408, allocations: 94.52 kB / 338.4 MB, free: 9.922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.141, allocations: 75.16 kB / 338.5 MB, free: 9.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007914/0.1418, allocations: 0.5057 MB / 339 MB, free: 9.301 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.1419, allocations: 67.02 kB / 339 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002028/0.1421, allocations: 67.98 kB / 339.1 MB, free: 9.164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1433, allocations: 0.6097 MB / 339.7 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.1433, allocations: 4 kB / 339.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.339e-05/0.1434, allocations: 20 kB / 339.7 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.1434, allocations: 16 kB / 339.8 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.1445, allocations: 0.536 MB / 340.3 MB, free: 7.957 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00379/0.1483, allocations: 2.318 MB / 342.6 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009768/0.1493, allocations: 489.6 kB / 343.1 MB, free: 5.031 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005349/0.1499, allocations: 278 kB / 343.4 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.1499, allocations: 4 kB / 343.4 MB, free: 4.75 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.15, allocations: 46.55 kB / 343.4 MB, free: 4.695 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.786e-06/0.15, allocations: 0 / 343.4 MB, free: 4.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01271/0.1627, allocations: 3.687 MB / 347.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.1628, allocations: 85.67 kB / 347.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009448/0.1638, allocations: 0.537 MB / 347.7 MB, free: 272 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-05/0.1639, allocations: 41.69 kB / 347.8 MB, free: 224 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003025/0.1642, allocations: 308.5 kB / 348.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.1645, allocations: 212.9 kB / 348.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.1645, allocations: 8 kB / 348.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.1647, allocations: 366.8 kB / 348.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000588/0.1653, allocations: 257.2 kB / 348.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006426/0.166, allocations: 356.4 kB / 349.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006457/0.1666, allocations: 290.1 kB / 349.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.1667, allocations: 0 / 349.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001936/0.1686, allocations: 0.7645 MB / 350.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.1687, allocations: 4 kB / 350.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.1687, allocations: 4 kB / 350.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.169, allocations: 32.91 kB / 350.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000859/0.1699, allocations: 175.7 kB / 350.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.1715, allocations: 1.337 MB / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007611/0.1723, allocations: 47.94 kB / 351.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.221e-05/0.1724, allocations: 27.98 kB / 351.9 MB, free: 11.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005618/0.173, allocations: 197.7 kB / 352.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.1732, allocations: 63.23 kB / 352.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.1752, allocations: 0.8647 MB / 353 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.1753, allocations: 7.984 kB / 353 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1753, allocations: 0 / 353 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.1753, allocations: 4 kB / 353 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/0.1794, allocations: 1.89 MB / 354.9 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.1794, allocations: 4 kB / 354.9 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005332/0.18, allocations: 111.9 kB / 355 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00245/0.1824, allocations: 0.4958 MB / 355.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.709e-05/0.1825, allocations: 19.95 kB / 355.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005958/0.1885, allocations: 2.948 MB / 358.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1886, allocations: 0 / 358.5 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00346/0.192, allocations: 1.405 MB / 359.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005107/0.1926, allocations: 212.4 kB / 360.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.1928, allocations: 15.92 kB / 360.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007338/0.1935, allocations: 55.97 kB / 360.2 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.1937, allocations: 48.44 kB / 360.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.456e-05/0.1938, allocations: 16 kB / 360.3 MB, free: 3.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006552/0.1944, allocations: 386.9 kB / 360.6 MB, free: 2.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1945, allocations: 0 / 360.6 MB, free: 2.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00113/0.1956, allocations: 180 kB / 360.8 MB, free: 2.723 MB / 302.1 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.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked 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.004209/0.1998, allocations: 2.001 MB / 362.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.2021, allocations: 0.7484 MB / 363.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.2021, allocations: 0 / 363.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.2034, allocations: 0.5294 MB / 364.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.205, allocations: 86.11 kB / 364.2 MB, free: 15.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.2156, allocations: 4.339 MB / 368.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006942/0.2163, allocations: 0.9007 MB / 369.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000488/0.2168, allocations: 68.81 kB / 369.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004876/0.2173, allocations: 240.5 kB / 369.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of SimCode: time 1.262e-06/0.2174, allocations: 4 kB / 369.7 MB, free: 9.648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2446/0.462, allocations: 14.88 MB / 384.6 MB, free: 52.32 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.4622, allocations: 255.9 kB / 384.8 MB, free: 51.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.639, allocations: 0 / 384.8 MB, free: 51.96 MB / 318.1 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) Environment - environmentSimulation: 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