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.001278/0.001278, allocations: 114.5 kB / 17.73 MB, free: 5.312 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: 187 kB / 18.67 MB, free: 4.387 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.439/1.439, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001947/0.001947, allocations: 47.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.104, allocations: 46.62 MB / 374.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005699/0.1097, allocations: 3.345 MB / 378 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.1125, allocations: 1.4 MB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003625/0.1129, allocations: 11.94 kB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1898/0.3027, allocations: 2.652 MB / 382.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008407/0.3036, allocations: 173.4 kB / 382.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000917/0.3046, allocations: 280.4 kB / 382.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003433/0.308, allocations: 1.796 MB / 384.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.3083, allocations: 144.1 kB / 384.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006751/0.309, allocations: 301.5 kB / 384.7 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006316/0.3096, allocations: 330.5 kB / 385 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002172/0.3098, allocations: 43.5 kB / 385.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003566/0.3102, allocations: 75.09 kB / 385.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008865/0.3111, allocations: 0.8482 MB / 386 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.3124, allocations: 0.9265 MB / 386.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003059/0.3155, allocations: 2.624 MB / 389.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3155, allocations: 0.7969 kB / 389.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3155, allocations: 4 kB / 389.6 MB, free: 7.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.14e-05/0.3156, allocations: 0 / 389.6 MB, free: 7.836 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.004137/0.3197, allocations: 2.897 MB / 392.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3198, allocations: 13.14 kB / 392.5 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.3198, allocations: 77.67 kB / 392.6 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003269/0.3202, allocations: 293.7 kB / 392.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.3223, allocations: 1.848 MB / 394.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.82e-05/0.3224, allocations: 58.61 kB / 394.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.3226, allocations: 48.94 kB / 394.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007184/0.3233, allocations: 401.2 kB / 395.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.3233, allocations: 0 / 395.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/0.3234, allocations: 12.09 kB / 395.2 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3234, allocations: 8.219 kB / 395.2 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006451/0.324, allocations: 331.8 kB / 395.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003562/0.3276, allocations: 2.909 MB / 398.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.3282, allocations: 315.3 kB / 398.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.3285, allocations: 166.7 kB / 398.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.3285, allocations: 8.078 kB / 398.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.3285, allocations: 37.69 kB / 399 MB, free: 2.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.3285, allocations: 0 / 399 MB, free: 2.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.004264/0.3328, allocations: 2.435 MB / 401.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.3329, allocations: 82.86 kB / 401.5 MB, free: 484 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006859/0.3397, allocations: 5.433 MB / 406.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.557e-05/0.3398, allocations: 35.14 kB / 406.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.3411, allocations: 1.206 MB / 408.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.3413, allocations: 180.9 kB / 408.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.3415, allocations: 92.98 kB / 408.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3416, allocations: 330.8 kB / 408.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.342, allocations: 136.6 kB / 408.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.3424, allocations: 226 kB / 409.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007673/0.3432, allocations: 383.4 kB / 409.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3432, allocations: 4 kB / 409.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001739/0.345, allocations: 0.6918 MB / 410.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.345, allocations: 8 kB / 410.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.345, allocations: 0 / 410.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.345, allocations: 4 kB / 410.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005238/0.3456, allocations: 123.8 kB / 410.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.3456, allocations: 4.25 kB / 410.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005497/0.3461, allocations: 27.89 kB / 410.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.3462, allocations: 19.98 kB / 410.3 MB, free: 11.04 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.001419/0.3476, allocations: 0.9253 MB / 411.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/0.348, allocations: 282.1 kB / 411.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.3494, allocations: 0.7746 MB / 412.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.3495, allocations: 8 kB / 412.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3495, allocations: 0 / 412.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3495, allocations: 3.984 kB / 412.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/0.3515, allocations: 1.465 MB / 413.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.3515, allocations: 4 kB / 413.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000451/0.3519, allocations: 91.88 kB / 413.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003453/0.3523, allocations: 92.06 kB / 414 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.689e-05/0.3523, allocations: 12 kB / 414 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006531/0.353, allocations: 0.6336 MB / 414.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.353, allocations: 1.016 kB / 414.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3548, allocations: 1.079 MB / 415.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000837/0.3557, allocations: 0.4952 MB / 416.2 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.3559, allocations: 12 kB / 416.2 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/0.3564, allocations: 23.61 kB / 416.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3565, allocations: 32.39 kB / 416.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.3566, allocations: 12 kB / 416.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.006374/0.3629, allocations: 3.97 MB / 420.2 MB, free: 1.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.363, allocations: 0 / 420.2 MB, free: 1.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001257/0.3642, allocations: 208 kB / 420.4 MB, free: 0.8164 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.003708/0.3679, allocations: 1.952 MB / 422.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008771/0.3688, allocations: 372.9 kB / 422.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3688, allocations: 0 / 422.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004877/0.3693, allocations: 218.8 kB / 423 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.3706, allocations: 203.2 kB / 423.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04597/0.4166, allocations: 19.35 MB / 442.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002004/0.4186, allocations: 1.817 MB / 444.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009511/0.4196, allocations: 275.6 kB / 444.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001462/0.421, allocations: 0.9288 MB / 445.5 MB, free: 7.504 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4211, allocations: 0 / 445.5 MB, free: 7.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09185/0.5129, allocations: 38.61 MB / 484.2 MB, free: 0.793 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.78/18.29, allocations: 12.14 kB / 484.2 MB, free: 0.7812 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)