Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_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.001132/0.001132, allocations: 102.6 kB / 17.72 MB, free: 5.371 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.001345/0.001345, allocations: 187.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 52.28 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.109, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.008126/0.1172, allocations: 3.345 MB / 378 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003822/0.1211, allocations: 1.396 MB / 379.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004543/0.1216, allocations: 11.94 kB / 379.4 MB, free: 324 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2336/0.3552, allocations: 2.652 MB / 382 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000885/0.3561, allocations: 173.8 kB / 382.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008063/0.357, allocations: 279.8 kB / 382.5 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002435/0.3594, allocations: 1.793 MB / 384.3 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.3597, allocations: 140.6 kB / 384.4 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004415/0.3601, allocations: 312.4 kB / 384.7 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004403/0.3606, allocations: 328.6 kB / 385 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.511e-05/0.3607, allocations: 44.34 kB / 385.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002046/0.3609, allocations: 72.05 kB / 385.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006777/0.3616, allocations: 0.8518 MB / 386 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005809/0.3622, allocations: 0.9336 MB / 386.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002991/0.3652, allocations: 2.61 MB / 389.5 MB, free: 7.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3652, allocations: 0 / 389.5 MB, free: 7.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3652, allocations: 0 / 389.5 MB, free: 7.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.254e-05/0.3652, allocations: 0 / 389.5 MB, free: 7.852 MB / 318.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.005469/0.3707, allocations: 2.801 MB / 392.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.3708, allocations: 13.16 kB / 392.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.276e-05/0.3709, allocations: 75.08 kB / 392.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000395/0.3713, allocations: 280.7 kB / 392.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002864/0.3742, allocations: 1.819 MB / 394.5 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.3743, allocations: 64.25 kB / 394.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/0.3745, allocations: 46.31 kB / 394.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008529/0.3754, allocations: 392.5 kB / 395 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3754, allocations: 0 / 395 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.3754, allocations: 17.08 kB / 395 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.3755, allocations: 8.344 kB / 395 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006852/0.3761, allocations: 337.4 kB / 395.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004311/0.3805, allocations: 2.898 MB / 398.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000647/0.3811, allocations: 317.5 kB / 398.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.3815, allocations: 166.2 kB / 398.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.3815, allocations: 3.906 kB / 398.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3815, allocations: 37.06 kB / 398.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.3816, allocations: 5.469 kB / 398.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.004605/0.3862, allocations: 2.365 MB / 401.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.3862, allocations: 86.83 kB / 401.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007326/0.3935, allocations: 5.434 MB / 406.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.19e-05/0.3936, allocations: 38.61 kB / 406.7 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.3949, allocations: 1.202 MB / 407.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.395, allocations: 172.7 kB / 408.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.3952, allocations: 84.47 kB / 408.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3953, allocations: 331.5 kB / 408.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.3956, allocations: 142.8 kB / 408.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004067/0.396, allocations: 221.1 kB / 408.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006949/0.3967, allocations: 379.7 kB / 409.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3968, allocations: 4 kB / 409.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001377/0.3981, allocations: 0.6839 MB / 409.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3982, allocations: 4 kB / 409.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3982, allocations: 4 kB / 409.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.3982, allocations: 4.25 kB / 409.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.3987, allocations: 127.8 kB / 410 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.3988, allocations: 7.984 kB / 410 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004984/0.3993, allocations: 15.94 kB / 410.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.3993, allocations: 16 kB / 410.1 MB, free: 11.34 MB / 334.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.00115/0.4005, allocations: 0.9192 MB / 411 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003987/0.4009, allocations: 272.5 kB / 411.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.4022, allocations: 0.7738 MB / 412 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.4023, allocations: 4 kB / 412 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4023, allocations: 4 kB / 412 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.4023, allocations: 3.984 kB / 412 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.4041, allocations: 1.471 MB / 413.5 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4041, allocations: 0 / 413.5 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004357/0.4046, allocations: 100.8 kB / 413.6 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003342/0.4049, allocations: 87.92 kB / 413.7 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.405, allocations: 15.88 kB / 413.7 MB, free: 7.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005475/0.4055, allocations: 0.6343 MB / 414.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4055, allocations: 0 / 414.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.4072, allocations: 1.061 MB / 415.4 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/0.4082, allocations: 497.2 kB / 415.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.4084, allocations: 12 kB / 415.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004733/0.4089, allocations: 19.98 kB / 415.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.258e-05/0.409, allocations: 28.39 kB / 416 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.409, allocations: 12 kB / 416 MB, free: 5.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.005299/0.4144, allocations: 3.974 MB / 419.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4144, allocations: 0 / 419.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009007/0.4153, allocations: 207.9 kB / 420.1 MB, free: 1.148 MB / 334.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.002808/0.4181, allocations: 1.929 MB / 422.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008298/0.4189, allocations: 380.9 kB / 422.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4189, allocations: 0 / 422.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.4194, allocations: 214.8 kB / 422.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.4206, allocations: 191.1 kB / 422.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04506/0.4657, allocations: 19.27 MB / 442.1 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/0.4673, allocations: 1.814 MB / 443.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008075/0.4681, allocations: 275.6 kB / 444.2 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/0.4692, allocations: 0.9327 MB / 445.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4692, allocations: 0 / 445.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0866/0.5558, allocations: 39.31 MB / 484.4 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.46/18.02, allocations: 20.02 kB / 484.5 MB, free: 0.5195 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)