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.00123/0.001231, allocations: 106.6 kB / 17.06 MB, free: 6.027 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.001126/0.001127, allocations: 195 kB / 17.99 MB, free: 5.109 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.376/1.376, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 43.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2862, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.007486/0.2938, allocations: 3.391 MB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.2976, allocations: 1.454 MB / 405.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005768/0.2982, allocations: 8 kB / 405.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003943/0.3022, allocations: 2.659 MB / 407.7 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007496/0.303, allocations: 174.7 kB / 407.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009149/0.304, allocations: 301.6 kB / 408.2 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002177/0.3061, allocations: 1.794 MB / 410 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.3064, allocations: 149 kB / 410.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004706/0.3069, allocations: 309 kB / 410.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000468/0.3074, allocations: 326.8 kB / 410.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.3075, allocations: 44 kB / 410.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.3077, allocations: 75.98 kB / 410.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005639/0.3083, allocations: 0.8491 MB / 411.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000786/0.3091, allocations: 0.9424 MB / 412.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002515/0.3116, allocations: 2.616 MB / 415.3 MB, free: 9.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.3117, allocations: 0 / 415.3 MB, free: 9.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3117, allocations: 0 / 415.3 MB, free: 9.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.279e-05/0.3118, allocations: 4 kB / 415.3 MB, free: 9.703 MB / 334.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.005817/0.3176, allocations: 2.794 MB / 418.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3177, allocations: 15.88 kB / 418.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.3178, allocations: 78.72 kB / 418.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005375/0.3183, allocations: 273.4 kB / 418.4 MB, free: 6.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003293/0.3216, allocations: 1.824 MB / 420.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.742e-05/0.3217, allocations: 63.02 kB / 420.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.3219, allocations: 47.97 kB / 420.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007447/0.3227, allocations: 395 kB / 420.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.3227, allocations: 4 kB / 420.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.3228, allocations: 12 kB / 420.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3228, allocations: 12 kB / 420.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007104/0.3235, allocations: 327.8 kB / 421.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00544/0.3289, allocations: 2.903 MB / 424 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006405/0.3296, allocations: 312.8 kB / 424.3 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.3299, allocations: 170.1 kB / 424.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.33, allocations: 4 kB / 424.5 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.33, allocations: 46.36 kB / 424.5 MB, free: 176 kB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.305e-06/0.33, allocations: 0 / 424.5 MB, free: 176 kB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.005192/0.3352, allocations: 2.386 MB / 426.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.3353, allocations: 85.55 kB / 427 MB, free: 13.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007461/0.3428, allocations: 5.435 MB / 432.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/0.3429, allocations: 33.7 kB / 432.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.3442, allocations: 1.211 MB / 433.7 MB, free: 6.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.3444, allocations: 169.5 kB / 433.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.3445, allocations: 82.25 kB / 433.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3447, allocations: 326 kB / 434.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/0.345, allocations: 148.9 kB / 434.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003642/0.3454, allocations: 217.7 kB / 434.6 MB, free: 5.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000679/0.3461, allocations: 384.2 kB / 435 MB, free: 5.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3461, allocations: 0 / 435 MB, free: 5.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001498/0.3476, allocations: 0.6878 MB / 435.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.3477, allocations: 4 kB / 435.7 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3477, allocations: 4 kB / 435.7 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.3477, allocations: 4 kB / 435.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005188/0.3482, allocations: 124.1 kB / 435.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.3483, allocations: 8 kB / 435.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005723/0.3488, allocations: 15.98 kB / 435.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.3489, allocations: 16 kB / 435.8 MB, free: 4.688 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001111/0.35, allocations: 0.923 MB / 436.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/0.3505, allocations: 268.5 kB / 437 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/0.3521, allocations: 0.798 MB / 437.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.3521, allocations: 7.984 kB / 437.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3522, allocations: 7.938 kB / 437.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3522, allocations: 0 / 437.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.3543, allocations: 1.465 MB / 439.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3543, allocations: 3.984 kB / 439.3 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.3547, allocations: 91.89 kB / 439.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00039/0.3551, allocations: 104.7 kB / 439.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.3552, allocations: 8 kB / 439.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005685/0.3557, allocations: 0.6266 MB / 440.1 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3558, allocations: 4.062 kB / 440.1 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.3575, allocations: 1.085 MB / 441.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.3586, allocations: 0.4936 MB / 441.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/0.3589, allocations: 4 kB / 441.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005676/0.3595, allocations: 23.98 kB / 441.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.854e-05/0.3596, allocations: 24.41 kB / 441.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.3596, allocations: 11.98 kB / 441.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005042/0.3647, allocations: 3.974 MB / 445.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3647, allocations: 0 / 445.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009507/0.3656, allocations: 204 kB / 446 MB, free: 10.43 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003137/0.3688, allocations: 1.937 MB / 447.9 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008397/0.3696, allocations: 384.9 kB / 448.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3697, allocations: 0.5 kB / 448.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004663/0.3701, allocations: 214.4 kB / 448.5 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.3715, allocations: 195.9 kB / 448.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03956/0.411, allocations: 19.26 MB / 467.9 MB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/0.413, allocations: 1.814 MB / 469.7 MB, free: 2.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007073/0.4137, allocations: 271.5 kB / 470 MB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/0.4149, allocations: 0.9366 MB / 470.9 MB, free: 1.352 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4149, allocations: 0 / 470.9 MB, free: 1.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07625/0.4912, allocations: 39.32 MB / 0.4983 GB, free: 10.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.15/17.64, allocations: 4.422 kB / 0.4983 GB, free: 10.32 MB / 430.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/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)