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.001422/0.001426, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.902/1.902, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001112/0.001112, allocations: 102.3 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003917, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3238, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.4659, allocations: 90.08 MB / 464.7 MB, free: 6.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/0.4663, allocations: 87.95 kB / 464.8 MB, free: 6.578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07386/0.5401, allocations: 15.54 MB / 480.4 MB, free: 6.957 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5402, allocations: 0 / 480.4 MB, free: 6.957 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.81e-05/0.5402, allocations: 12 kB / 480.4 MB, free: 6.945 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003398/0.5437, allocations: 0.9707 MB / 481.3 MB, free: 5.926 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/0.5437, allocations: 12.03 kB / 481.3 MB, free: 5.914 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002628/0.544, allocations: 98.45 kB / 481.4 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.5442, allocations: 79.06 kB / 481.5 MB, free: 5.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.5454, allocations: 0.494 MB / 482 MB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.5456, allocations: 71.02 kB / 482.1 MB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003266/0.5459, allocations: 67.98 kB / 482.2 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001918/0.5479, allocations: 0.6019 MB / 482.8 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.5479, allocations: 0 / 482.8 MB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.548, allocations: 20 kB / 482.8 MB, free: 4.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.5481, allocations: 20 kB / 482.8 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002063/0.5501, allocations: 0.5243 MB / 483.3 MB, free: 3.867 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005779/0.5559, allocations: 2.331 MB / 485.6 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.5579, allocations: 494.2 kB / 486.1 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.524e-05/0.558, allocations: 4 kB / 486.1 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/0.558, allocations: 42.55 kB / 486.2 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.116e-06/0.558, allocations: 0 / 486.2 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.02477/0.5828, allocations: 3.699 MB / 489.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.175e-05/0.5829, allocations: 89.62 kB / 490 MB, free: 12.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.5841, allocations: 493.2 kB / 490.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001572/0.5843, allocations: 33.7 kB / 490.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/0.5846, allocations: 346.8 kB / 490.8 MB, free: 12.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002873/0.5849, allocations: 208.9 kB / 491 MB, free: 11.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.092e-05/0.585, allocations: 16 kB / 491 MB, free: 11.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.5851, allocations: 330.8 kB / 491.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.5863, allocations: 261.2 kB / 491.6 MB, free: 11.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.5874, allocations: 347.5 kB / 492 MB, free: 10.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.5886, allocations: 290.1 kB / 492.2 MB, free: 10.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.5886, allocations: 0 / 492.2 MB, free: 10.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002662/0.5913, allocations: 0.7182 MB / 493 MB, free: 9.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.5914, allocations: 8 kB / 493 MB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.5914, allocations: 3.953 kB / 493 MB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002358/0.5916, allocations: 36.95 kB / 493 MB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.5932, allocations: 167.8 kB / 493.2 MB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.5948, allocations: 1.339 MB / 494.5 MB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.5959, allocations: 35.98 kB / 494.5 MB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.974e-05/0.5961, allocations: 32.05 kB / 494.6 MB, free: 8.16 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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.0005103/0.5966, allocations: 197.7 kB / 494.8 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/0.5968, allocations: 63.25 kB / 494.8 MB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.6001, allocations: 0.8724 MB / 495.7 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.6001, allocations: 8 kB / 495.7 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.6002, allocations: 0 / 495.7 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.6002, allocations: 3.984 kB / 495.7 MB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006584/0.6068, allocations: 1.877 MB / 497.6 MB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.6068, allocations: 0 / 497.6 MB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.6079, allocations: 111.9 kB / 497.7 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004866/0.6128, allocations: 0.5043 MB / 498.2 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.613, allocations: 15.98 kB / 498.2 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009178/0.6222, allocations: 3.025 MB / 0.4895 GB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.6223, allocations: 4.062 kB / 0.4895 GB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2697/0.892, allocations: 1.419 MB / 0.4909 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005889/0.8926, allocations: 203.7 kB / 0.4911 GB, free: 105.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.8928, allocations: 12.89 kB / 0.4911 GB, free: 105.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.894, allocations: 51.05 kB / 0.4911 GB, free: 105.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.8942, allocations: 53.95 kB / 0.4912 GB, free: 105.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.731e-05/0.8943, allocations: 17.25 kB / 0.4912 GB, free: 105.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008266/0.8951, allocations: 387.3 kB / 0.4916 GB, free: 105.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8952, allocations: 0 / 0.4916 GB, free: 105.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001284/0.8964, allocations: 199.5 kB / 0.4918 GB, free: 105.8 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.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.00597/0.9024, allocations: 2.085 MB / 0.4938 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.905, allocations: 0.7456 MB / 0.4945 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.905, allocations: 1.031 kB / 0.4945 GB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.9066, allocations: 0.533 MB / 0.4951 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00095/0.9076, allocations: 86.41 kB / 0.4951 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/0.9197, allocations: 5.715 MB / 0.5007 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/0.9202, allocations: 0.9137 MB / 0.5016 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000704/0.921, allocations: 244.4 kB / 0.5018 GB, free: 101.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.921, allocations: 0 / 0.5018 GB, free: 101.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.817/3.738, allocations: 14.29 MB / 0.5158 GB, free: 97.84 MB / 378.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)