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.001217/0.001217, allocations: 113.8 kB / 17.06 MB, free: 5.973 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.001241/0.001241, allocations: 198.9 kB / 18 MB, free: 5.055 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 51.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2942, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00552/0.2997, allocations: 3.388 MB / 403.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002678/0.3024, allocations: 1.45 MB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004068/0.3029, allocations: 15.94 kB / 405.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003153/0.306, allocations: 2.651 MB / 407.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006526/0.3068, allocations: 178.7 kB / 407.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008393/0.3076, allocations: 306.8 kB / 408.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002471/0.3101, allocations: 1.798 MB / 410 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.3104, allocations: 141 kB / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005426/0.311, allocations: 313 kB / 410.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005296/0.3115, allocations: 326.8 kB / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.3117, allocations: 44 kB / 410.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.3119, allocations: 75.98 kB / 410.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000649/0.3126, allocations: 0.8453 MB / 411.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009912/0.3136, allocations: 0.9463 MB / 412.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002363/0.316, allocations: 2.612 MB / 415.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.316, allocations: 0 / 415.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.316, allocations: 0 / 415.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.781e-05/0.3161, allocations: 0 / 415.3 MB, free: 9.688 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.005286/0.3214, allocations: 2.794 MB / 418.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3214, allocations: 16.03 kB / 418.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.3216, allocations: 74.72 kB / 418.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005259/0.3221, allocations: 273.4 kB / 418.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.3252, allocations: 1.832 MB / 420.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/0.3253, allocations: 63 kB / 420.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.3255, allocations: 40 kB / 420.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007558/0.3263, allocations: 402.9 kB / 420.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.3263, allocations: 0 / 420.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.3263, allocations: 16 kB / 420.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.3264, allocations: 8 kB / 420.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007039/0.3271, allocations: 327.7 kB / 421.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004775/0.3319, allocations: 2.899 MB / 424 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006123/0.3325, allocations: 313 kB / 424.3 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.3328, allocations: 170.2 kB / 424.5 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.3329, allocations: 8 kB / 424.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3329, allocations: 42.36 kB / 424.5 MB, free: 160 kB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.523e-06/0.3329, allocations: 0 / 424.5 MB, free: 160 kB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.005078/0.338, allocations: 2.382 MB / 426.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3381, allocations: 89.48 kB / 427 MB, free: 13.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007613/0.3457, allocations: 5.427 MB / 432.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.364e-05/0.3458, allocations: 33.7 kB / 432.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.347, allocations: 1.214 MB / 433.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.3472, allocations: 169.5 kB / 433.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.3473, allocations: 86.25 kB / 433.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3474, allocations: 326 kB / 434.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003341/0.3478, allocations: 137.1 kB / 434.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.3482, allocations: 221.7 kB / 434.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007393/0.3489, allocations: 388.2 kB / 435 MB, free: 5.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3489, allocations: 0 / 435 MB, free: 5.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001384/0.3503, allocations: 0.6878 MB / 435.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3503, allocations: 4 kB / 435.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.3504, allocations: 7.984 kB / 435.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.3504, allocations: 4 kB / 435.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005033/0.3509, allocations: 123.8 kB / 435.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.3509, allocations: 4 kB / 435.8 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005558/0.3515, allocations: 28.23 kB / 435.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.3515, allocations: 16 kB / 435.8 MB, free: 4.664 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.0011/0.3526, allocations: 0.9191 MB / 436.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004382/0.3531, allocations: 268.5 kB / 437 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.3546, allocations: 0.794 MB / 437.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.3547, allocations: 8 kB / 437.8 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3547, allocations: 3.938 kB / 437.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3547, allocations: 3.984 kB / 437.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.3565, allocations: 1.465 MB / 439.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3566, allocations: 0 / 439.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.357, allocations: 95.88 kB / 439.4 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003834/0.3574, allocations: 104.8 kB / 439.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.3574, allocations: 11.98 kB / 439.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006169/0.3581, allocations: 0.6227 MB / 440.1 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3581, allocations: 0 / 440.1 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.3599, allocations: 1.089 MB / 441.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007714/0.3607, allocations: 497.4 kB / 441.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.3609, allocations: 4 kB / 441.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.3615, allocations: 27.98 kB / 441.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.884e-05/0.3616, allocations: 28.39 kB / 441.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.3616, allocations: 16 kB / 441.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004866/0.3665, allocations: 3.97 MB / 445.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3665, allocations: 0 / 445.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007218/0.3672, allocations: 204 kB / 446 MB, free: 10.41 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.002715/0.3699, allocations: 1.94 MB / 447.9 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008526/0.3708, allocations: 380.9 kB / 448.3 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3708, allocations: 0 / 448.3 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000475/0.3713, allocations: 218.9 kB / 448.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.3725, allocations: 200.3 kB / 448.7 MB, free: 7.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04088/0.4133, allocations: 19.26 MB / 467.9 MB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001851/0.4152, allocations: 1.818 MB / 469.7 MB, free: 2.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007385/0.416, allocations: 275.5 kB / 470 MB, free: 2.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/0.4175, allocations: 0.9288 MB / 470.9 MB, free: 1.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4175, allocations: 0 / 470.9 MB, free: 1.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07627/0.4938, allocations: 39.33 MB / 0.4983 GB, free: 10.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.27/16.76, allocations: 6.562 kB / 0.4983 GB, free: 10.3 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)