Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001161/0.001161, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2861, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004525/0.2906, allocations: 3.438 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.2931, allocations: 1.652 MB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/0.2934, allocations: 11.94 kB / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002618/0.296, allocations: 2.663 MB / 416.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005748/0.2967, allocations: 218.5 kB / 416.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007451/0.2974, allocations: 314.7 kB / 417 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.2991, allocations: 1.817 MB / 418.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.2993, allocations: 143.9 kB / 419 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003699/0.2997, allocations: 317 kB / 419.3 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003485/0.3, allocations: 330.8 kB / 419.6 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.4e-05/0.3001, allocations: 47.94 kB / 419.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.3003, allocations: 95.97 kB / 419.8 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005162/0.3008, allocations: 0.8414 MB / 420.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006016/0.3014, allocations: 0.9462 MB / 421.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002116/0.3035, allocations: 2.641 MB / 424.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3036, allocations: 0 / 424.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.3036, allocations: 0 / 424.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.3036, allocations: 3.938 kB / 424.2 MB, free: 2.035 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.004251/0.3079, allocations: 2.81 MB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3079, allocations: 8.031 kB / 427 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.034e-05/0.308, allocations: 74.7 kB / 427.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000522/0.3085, allocations: 289.3 kB / 427.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00281/0.3113, allocations: 1.836 MB / 429.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-05/0.3114, allocations: 63.02 kB / 429.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.3116, allocations: 55.92 kB / 429.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007993/0.3124, allocations: 391 kB / 429.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.3125, allocations: 0 / 429.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.3125, allocations: 16 kB / 429.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.3125, allocations: 8 kB / 429.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006933/0.3132, allocations: 331.7 kB / 430.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004508/0.3177, allocations: 2.907 MB / 433 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007824/0.3185, allocations: 320.1 kB / 433.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.3189, allocations: 167.9 kB / 433.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.3189, allocations: 4 kB / 433.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.319, allocations: 42.5 kB / 433.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/0.319, allocations: 4 kB / 433.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005579/0.3246, allocations: 2.402 MB / 435.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.3247, allocations: 85.55 kB / 436 MB, free: 5.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006359/0.331, allocations: 5.452 MB / 441.4 MB, free: 444 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.34e-05/0.3311, allocations: 29.7 kB / 441.5 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.3324, allocations: 1.187 MB / 442.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.3326, allocations: 161.6 kB / 442.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/0.3327, allocations: 94.14 kB / 442.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3329, allocations: 322 kB / 443.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004313/0.3333, allocations: 145 kB / 443.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004663/0.3338, allocations: 217.7 kB / 443.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006919/0.3345, allocations: 388.2 kB / 443.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3345, allocations: 0 / 443.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001185/0.3357, allocations: 0.6878 MB / 444.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3357, allocations: 4 kB / 444.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3357, allocations: 8.188 kB / 444.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.3358, allocations: 8 kB / 444.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.3363, allocations: 119.8 kB / 444.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.3363, allocations: 4 kB / 444.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.3367, allocations: 19.98 kB / 444.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.3367, allocations: 16 kB / 444.8 MB, free: 12.97 MB / 366.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.001188/0.3379, allocations: 0.9307 MB / 445.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000296/0.3382, allocations: 272.4 kB / 446 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.3396, allocations: 0.8059 MB / 446.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3396, allocations: 4 kB / 446.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3396, allocations: 0 / 446.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3397, allocations: 3.984 kB / 446.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.3415, allocations: 1.477 MB / 448.3 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3415, allocations: 8 kB / 448.3 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004242/0.3419, allocations: 91.88 kB / 448.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003442/0.3423, allocations: 96.77 kB / 448.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.3423, allocations: 12 kB / 448.5 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000604/0.3429, allocations: 0.6382 MB / 449.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.343, allocations: 0 / 449.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.3445, allocations: 1.073 MB / 450.2 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009709/0.3455, allocations: 489.6 kB / 450.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.3457, allocations: 12 kB / 450.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.3461, allocations: 16.11 kB / 450.7 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.444e-05/0.3462, allocations: 28.39 kB / 450.7 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.3463, allocations: 20 kB / 450.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004858/0.3511, allocations: 3.99 MB / 454.7 MB, free: 2.879 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3511, allocations: 3.938 kB / 454.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007843/0.3519, allocations: 204 kB / 455 MB, free: 2.676 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.002869/0.3548, allocations: 1.923 MB / 456.9 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008101/0.3556, allocations: 381.2 kB / 457.2 MB, free: 496 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.3556, allocations: 4 kB / 457.2 MB, free: 492 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004494/0.3561, allocations: 218.3 kB / 457.5 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.3572, allocations: 205.6 kB / 457.7 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0419/0.3991, allocations: 19.33 MB / 477 MB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00209/0.4012, allocations: 1.821 MB / 478.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007609/0.402, allocations: 275.8 kB / 479.1 MB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.4034, allocations: 0.9367 MB / 480 MB, free: 9.496 MB / 398.1 MB Notification: Performance of SimCode: time 1.633e-06/0.4034, allocations: 0 / 480 MB, free: 9.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08273/0.4861, allocations: 39.53 MB / 0.5074 GB, free: 2.242 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.05/17.54, allocations: 448 / 0.5074 GB, free: 2.242 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)