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.001815/0.001815, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001982/0.001982, allocations: 201.2 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3236, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004662/0.3283, allocations: 3.435 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.3309, allocations: 1.66 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.3311, allocations: 4 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002538/0.3336, allocations: 2.663 MB / 416.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005355/0.3342, allocations: 214.6 kB / 416.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.335, allocations: 322.8 kB / 417 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001939/0.3369, allocations: 1.817 MB / 418.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.3372, allocations: 136 kB / 419 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004847/0.3377, allocations: 317.1 kB / 419.3 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004061/0.3381, allocations: 330.8 kB / 419.6 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.181e-05/0.3382, allocations: 44 kB / 419.7 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002122/0.3384, allocations: 95.98 kB / 419.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006555/0.3391, allocations: 0.8452 MB / 420.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007848/0.3399, allocations: 0.9462 MB / 421.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002245/0.3421, allocations: 2.637 MB / 424.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3421, allocations: 0 / 424.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3421, allocations: 3.938 kB / 424.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.3422, allocations: 0 / 424.2 MB, free: 2.039 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.004221/0.3464, allocations: 2.814 MB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.3465, allocations: 12.03 kB / 427 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.3466, allocations: 74.72 kB / 427.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005179/0.3471, allocations: 289.3 kB / 427.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.3497, allocations: 1.84 MB / 429.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.936e-05/0.3498, allocations: 63.02 kB / 429.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.35, allocations: 43.98 kB / 429.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006603/0.3506, allocations: 391 kB / 429.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3507, allocations: 4 kB / 429.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.3507, allocations: 23.92 kB / 429.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.3507, allocations: 8 kB / 429.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006516/0.3514, allocations: 331.8 kB / 430.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003749/0.3551, allocations: 2.899 MB / 433 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006004/0.3558, allocations: 324.1 kB / 433.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.3561, allocations: 168.1 kB / 433.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.3561, allocations: 7.984 kB / 433.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.3562, allocations: 46.44 kB / 433.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.943e-06/0.3562, allocations: 0 / 433.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.004549/0.3607, allocations: 2.406 MB / 435.9 MB, free: 5.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3608, allocations: 81.55 kB / 436 MB, free: 5.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007536/0.3683, allocations: 5.455 MB / 441.4 MB, free: 436 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.3685, allocations: 37.7 kB / 441.5 MB, free: 392 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.3695, allocations: 1.179 MB / 442.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.3697, allocations: 165.6 kB / 442.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.3698, allocations: 94.19 kB / 442.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3699, allocations: 326 kB / 443.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/0.3703, allocations: 137.1 kB / 443.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.3707, allocations: 225.6 kB / 443.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000714/0.3714, allocations: 380.2 kB / 443.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3714, allocations: 0 / 443.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001578/0.373, allocations: 0.688 MB / 444.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.373, allocations: 10.81 kB / 444.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.3731, allocations: 0 / 444.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.3731, allocations: 4 kB / 444.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005108/0.3736, allocations: 131.8 kB / 444.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.3736, allocations: 4 kB / 444.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004994/0.3741, allocations: 12 kB / 444.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.3742, allocations: 20 kB / 444.8 MB, free: 12.96 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.001235/0.3754, allocations: 0.9346 MB / 445.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/0.3757, allocations: 272.4 kB / 446 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.3772, allocations: 0.7982 MB / 446.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3772, allocations: 4 kB / 446.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3772, allocations: 8 kB / 446.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3772, allocations: 3.984 kB / 446.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.3789, allocations: 1.473 MB / 448.3 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3789, allocations: 0 / 448.3 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004395/0.3793, allocations: 99.86 kB / 448.4 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000362/0.3797, allocations: 84.8 kB / 448.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.3798, allocations: 15.98 kB / 448.5 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005409/0.3803, allocations: 0.6381 MB / 449.1 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3803, allocations: 0 / 449.1 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3819, allocations: 1.081 MB / 450.2 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006793/0.3826, allocations: 489.6 kB / 450.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.3828, allocations: 11.98 kB / 450.7 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004487/0.3833, allocations: 19.94 kB / 450.7 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.173e-05/0.3833, allocations: 36.39 kB / 450.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.3834, allocations: 11.98 kB / 450.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004713/0.3881, allocations: 3.997 MB / 454.8 MB, free: 2.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3881, allocations: 0 / 454.8 MB, free: 2.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006863/0.3888, allocations: 200 kB / 455 MB, free: 2.66 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.002796/0.3916, allocations: 1.926 MB / 456.9 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007701/0.3924, allocations: 376.9 kB / 457.3 MB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3924, allocations: 0 / 457.3 MB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004449/0.3928, allocations: 214.4 kB / 457.5 MB, free: 272 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.3939, allocations: 198.2 kB / 457.7 MB, free: 76 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03745/0.4314, allocations: 19.33 MB / 477 MB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001799/0.4332, allocations: 1.821 MB / 478.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006655/0.4339, allocations: 271.8 kB / 479.1 MB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/0.4352, allocations: 0.9445 MB / 480 MB, free: 9.496 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4352, allocations: 4 kB / 480 MB, free: 9.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07363/0.5089, allocations: 39.54 MB / 0.5074 GB, free: 2.234 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.8/17.31, allocations: 448 / 0.5074 GB, free: 2.23 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)