Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 105 kB / 21.22 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002035/0.002035, allocations: 209.7 kB / 24.53 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.561/1.561, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 68.77 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2764, allocations: 53.37 MB / 431.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00645/0.2828, allocations: 4.429 MB / 436.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003525/0.2864, allocations: 1.66 MB / 438 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005391/0.2869, allocations: 11.94 kB / 438 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004422/0.2873, allocations: 122.8 kB / 438.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009656/0.2883, allocations: 369.6 kB / 438.5 MB, free: 320 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006178/0.2889, allocations: 243.6 kB / 438.7 MB, free: 76 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.2901, allocations: 0.9824 MB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003198/0.2904, allocations: 162 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005684/0.291, allocations: 390.8 kB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005719/0.2915, allocations: 434.2 kB / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.2917, allocations: 96 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004133/0.2921, allocations: 219.9 kB / 441 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.2923, allocations: 199.3 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.2926, allocations: 414.1 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.294, allocations: 1.179 MB / 442.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.294, allocations: 0 / 442.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.294, allocations: 0 / 442.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.2941, allocations: 0 / 442.8 MB, free: 12.02 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002567/0.2966, allocations: 1.045 MB / 443.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.2967, allocations: 12.03 kB / 443.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000129/0.2968, allocations: 94.7 kB / 443.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002677/0.2971, allocations: 96.45 kB / 444 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008615/0.2979, allocations: 469.4 kB / 444.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.2981, allocations: 130.9 kB / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/0.2983, allocations: 64.31 kB / 444.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.2994, allocations: 0.6059 MB / 445.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.2995, allocations: 3.984 kB / 445.3 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.553e-05/0.2995, allocations: 20 kB / 445.3 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.2995, allocations: 12 kB / 445.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.3007, allocations: 0.5282 MB / 445.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00356/0.3042, allocations: 2.244 MB / 448.1 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009865/0.3052, allocations: 461.2 kB / 448.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.3057, allocations: 254 kB / 448.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.3058, allocations: 8.219 kB / 448.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.3058, allocations: 50.42 kB / 448.8 MB, free: 5.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.764e-06/0.3058, allocations: 0 / 448.8 MB, free: 5.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01294/0.3188, allocations: 3.326 MB / 452.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.565e-05/0.3188, allocations: 85.61 kB / 452.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007476/0.3196, allocations: 0.5371 MB / 452.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.525e-05/0.3196, allocations: 37.7 kB / 452.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.3199, allocations: 324.8 kB / 453.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.3201, allocations: 214.2 kB / 453.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.3203, allocations: 118.3 kB / 453.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.3205, allocations: 366.8 kB / 453.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005708/0.321, allocations: 245.2 kB / 454.1 MB, free: 420 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006431/0.3217, allocations: 348.5 kB / 454.4 MB, free: 40 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.3229, allocations: 0.5993 MB / 455 MB, free: 15.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3229, allocations: 0 / 455 MB, free: 15.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001562/0.3245, allocations: 0.7513 MB / 455.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3245, allocations: 7.938 kB / 455.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3245, allocations: 4 kB / 455.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.3247, allocations: 33.16 kB / 455.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/0.3255, allocations: 163.8 kB / 456 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.3267, allocations: 1.331 MB / 457.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/0.3273, allocations: 39.97 kB / 457.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-05/0.3274, allocations: 23.98 kB / 457.3 MB, free: 12.92 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003192/0.3277, allocations: 209.7 kB / 457.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.3278, allocations: 63.58 kB / 457.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.3297, allocations: 0.832 MB / 458.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.3297, allocations: 7.938 kB / 458.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3297, allocations: 7.984 kB / 458.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3297, allocations: 0 / 458.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003826/0.3335, allocations: 1.812 MB / 460.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3335, allocations: 0 / 460.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.334, allocations: 107.9 kB / 460.4 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/0.3363, allocations: 476.2 kB / 460.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.068e-05/0.3363, allocations: 27.94 kB / 460.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00529/0.3416, allocations: 3.052 MB / 463.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3416, allocations: 0 / 463.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003097/0.3447, allocations: 1.366 MB / 465.3 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.345, allocations: 131.5 kB / 465.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.715e-05/0.3451, allocations: 19.98 kB / 465.4 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005824/0.3457, allocations: 39.97 kB / 465.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.3458, allocations: 48.56 kB / 465.5 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.245e-05/0.3459, allocations: 19.98 kB / 465.5 MB, free: 4.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005598/0.3465, allocations: 394.9 kB / 465.9 MB, free: 4.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3465, allocations: 0 / 465.9 MB, free: 4.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007509/0.3472, allocations: 184.1 kB / 466.1 MB, free: 3.949 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003635/0.3509, allocations: 1.957 MB / 468.1 MB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.3524, allocations: 0.7109 MB / 468.8 MB, free: 1.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3524, allocations: 4 kB / 468.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009593/0.3534, allocations: 0.4989 MB / 469.3 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/0.3541, allocations: 104 kB / 469.4 MB, free: 0.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009673/0.3638, allocations: 5.947 MB / 475.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000587/0.3644, allocations: 0.9003 MB / 476.2 MB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003635/0.3648, allocations: 72.75 kB / 476.3 MB, free: 9.523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/0.3652, allocations: 243.3 kB / 476.5 MB, free: 9.285 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3652, allocations: 0 / 476.5 MB, free: 9.285 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05373/0.4189, allocations: 16.3 MB / 492.8 MB, free: 9.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.55, allocations: 7.703 kB / 492.8 MB, free: 9.199 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.20897772582248] Failed to read output from testmodel.py, exit status != 0: ['time', 'transformer.core.B', 'transformer.core.MagRel', 'transformer.core.Hstat', 'transformer.winding1.i', 'transformer.winding2.i'] 13.661874268669635 13.692026514 13.391869497 Calling exit ...