Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.0024/0.002399, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001098/0.001098, allocations: 70.73 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.21e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09953, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4326/0.5322, allocations: 89.99 MB / 459.2 MB, free: 3.266 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.5325, allocations: 83.45 kB / 459.3 MB, free: 3.223 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1119/0.6444, allocations: 15.53 MB / 474.8 MB, free: 5.465 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.173e-06/0.6445, allocations: 0 / 474.8 MB, free: 5.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.425e-05/0.6446, allocations: 19.94 kB / 474.8 MB, free: 5.445 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.004228/0.6488, allocations: 0.8582 MB / 475.7 MB, free: 4.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.464e-05/0.6489, allocations: 8.031 kB / 475.7 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003857/0.6493, allocations: 102.5 kB / 475.8 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000421/0.6497, allocations: 83.06 kB / 475.8 MB, free: 4.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001918/0.6517, allocations: 490.1 kB / 476.3 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.6519, allocations: 75.02 kB / 476.4 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005343/0.6525, allocations: 67.92 kB / 476.5 MB, free: 3.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00266/0.6551, allocations: 0.563 MB / 477 MB, free: 3.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.966e-05/0.6552, allocations: 3.938 kB / 477 MB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.6554, allocations: 28 kB / 477.1 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/0.6555, allocations: 16 kB / 477.1 MB, free: 3.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/0.658, allocations: 481.1 kB / 477.5 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009977/0.668, allocations: 2.33 MB / 479.9 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/0.6702, allocations: 425.8 kB / 480.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.6714, allocations: 243.1 kB / 480.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-05/0.6715, allocations: 4 kB / 480.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.095e-05/0.6716, allocations: 42.5 kB / 480.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 4.759e-06/0.6716, allocations: 3.938 kB / 480.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.03175/0.7034, allocations: 3.03 MB / 483.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.7035, allocations: 85.67 kB / 483.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.7058, allocations: 487.8 kB / 484.2 MB, free: 11.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003095/0.7061, allocations: 41.7 kB / 484.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005329/0.7067, allocations: 334.9 kB / 484.5 MB, free: 11.35 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005853/0.7073, allocations: 216.8 kB / 484.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.7075, allocations: 12 kB / 484.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002751/0.7078, allocations: 342.8 kB / 485.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.7091, allocations: 221.5 kB / 485.3 MB, free: 10.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.7106, allocations: 320.9 kB / 485.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.712, allocations: 259.2 kB / 485.9 MB, free: 9.961 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.712, allocations: 0 / 485.9 MB, free: 9.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.02024/0.7323, allocations: 1.756 MB / 487.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.7324, allocations: 4 kB / 487.6 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.7324, allocations: 8 kB / 487.6 MB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01828/0.7507, allocations: 1.168 MB / 488.8 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.7521, allocations: 91.89 kB / 488.9 MB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03479/0.7869, allocations: 5.77 MB / 494.7 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.7887, allocations: 39.98 kB / 494.7 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.7889, allocations: 23.98 kB / 494.7 MB, free: 0.9336 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.0003503/0.7892, allocations: 137 kB / 494.9 MB, free: 0.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003603/0.7896, allocations: 67.17 kB / 494.9 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.7935, allocations: 0.7632 MB / 495.7 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.7935, allocations: 11.95 kB / 495.7 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.7936, allocations: 4 kB / 495.7 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.341e-05/0.7936, allocations: 7.984 kB / 495.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009206/0.8028, allocations: 1.816 MB / 497.5 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.8029, allocations: 4 kB / 497.5 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/0.8047, allocations: 119.8 kB / 497.7 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00454/0.8093, allocations: 333.2 kB / 498 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001988/0.8095, allocations: 15.98 kB / 498 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/0.8196, allocations: 2.815 MB / 0.4891 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8197, allocations: 0 / 0.4891 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.8239, allocations: 1.279 MB / 0.4903 GB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005152/0.8244, allocations: 208.4 kB / 0.4905 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.8246, allocations: 16 kB / 0.4905 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.8257, allocations: 47.97 kB / 0.4906 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/0.826, allocations: 48.48 kB / 0.4906 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.007e-05/0.826, allocations: 16 kB / 0.4906 GB, free: 8.984 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007806/0.8268, allocations: 385.6 kB / 0.491 GB, free: 8.609 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8268, allocations: 0 / 0.491 GB, free: 8.609 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001275/0.8281, allocations: 216 kB / 0.4912 GB, free: 8.398 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.004961/0.8331, allocations: 1.957 MB / 0.4931 GB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002429/0.8356, allocations: 0.8144 MB / 0.4939 GB, free: 5.574 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8356, allocations: 0 / 0.4939 GB, free: 5.574 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.8369, allocations: 0.4896 MB / 0.4944 GB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009358/0.8378, allocations: 82.33 kB / 0.4945 GB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.8422, allocations: 1.268 MB / 0.4957 GB, free: 3.676 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00068/0.8429, allocations: 0.9199 MB / 0.4966 GB, free: 2.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006133/0.8435, allocations: 239.3 kB / 0.4968 GB, free: 2.496 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.8436, allocations: 0 / 0.4968 GB, free: 2.496 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.737/3.581, allocations: 14.08 MB / 0.5106 GB, free: 4.391 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat