Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0016/0.0016, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.001392/0.001392, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 55.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1277, allocations: 53.4 MB / 427.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.01098/0.1387, allocations: 4.389 MB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2246/0.3633, allocations: 1.649 MB / 433.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004483/0.3637, allocations: 12.78 kB / 433.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003835/0.3641, allocations: 127.7 kB / 433.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008289/0.365, allocations: 370.9 kB / 433.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.3654, allocations: 239.5 kB / 433.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008998/0.3663, allocations: 0.9846 MB / 434.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002698/0.3666, allocations: 152.9 kB / 435 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004863/0.3671, allocations: 395.2 kB / 435.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000495/0.3676, allocations: 430.6 kB / 435.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.3677, allocations: 96.31 kB / 435.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004234/0.3681, allocations: 219.6 kB / 436.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.3683, allocations: 195.9 kB / 436.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003674/0.3686, allocations: 413.1 kB / 436.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.3701, allocations: 1.177 MB / 437.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3702, allocations: 1.281 kB / 437.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3702, allocations: 0.6094 kB / 437.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.3702, allocations: 1.969 kB / 437.9 MB, free: 6.266 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.002448/0.3726, allocations: 1.126 MB / 439 MB, free: 5.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.3727, allocations: 8.844 kB / 439 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.626e-05/0.3727, allocations: 14.88 kB / 439 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.3728, allocations: 98.8 kB / 439.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.3731, allocations: 88.22 kB / 439.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007659/0.3738, allocations: 0.522 MB / 439.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.493e-05/0.3739, allocations: 74.98 kB / 439.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.3741, allocations: 65.25 kB / 439.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.3752, allocations: 0.5995 MB / 440.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.3753, allocations: 9.188 kB / 440.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.803e-05/0.3753, allocations: 25.25 kB / 440.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.3753, allocations: 13.58 kB / 440.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.3765, allocations: 0.5215 MB / 441 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003691/0.3802, allocations: 2.296 MB / 443.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3813, allocations: 459.8 kB / 443.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005242/0.3818, allocations: 254.8 kB / 444 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.3819, allocations: 11.89 kB / 444 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.3819, allocations: 42.67 kB / 444.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.404e-06/0.3819, allocations: 0 / 444.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01306/0.3949, allocations: 3.556 MB / 447.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.395, allocations: 84.7 kB / 447.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008242/0.3958, allocations: 0.5372 MB / 448.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.684e-05/0.3959, allocations: 36.73 kB / 448.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.3961, allocations: 318.1 kB / 448.6 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.3962, allocations: 220.2 kB / 448.8 MB, free: 328 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000209/0.3964, allocations: 115.3 kB / 448.9 MB, free: 264 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3966, allocations: 366.8 kB / 449.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005994/0.3972, allocations: 253.4 kB / 449.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007047/0.3979, allocations: 349.5 kB / 449.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.3992, allocations: 0.6063 MB / 450.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3992, allocations: 1.406 kB / 450.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001752/0.4009, allocations: 0.743 MB / 451.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.4009, allocations: 6.875 kB / 451.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.401, allocations: 3.359 kB / 451.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002014/0.4012, allocations: 34.33 kB / 451.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008248/0.402, allocations: 170.3 kB / 451.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.4033, allocations: 1.429 MB / 452.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007141/0.404, allocations: 38.86 kB / 452.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.873e-05/0.4041, allocations: 23.16 kB / 452.9 MB, free: 13.46 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.0003714/0.4045, allocations: 199.7 kB / 453.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.4046, allocations: 70.67 kB / 453.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/0.4066, allocations: 0.8361 MB / 454 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4066, allocations: 7.625 kB / 454 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4066, allocations: 3.031 kB / 454 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.4066, allocations: 4.328 kB / 454 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003962/0.4106, allocations: 1.84 MB / 455.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.4106, allocations: 3 kB / 455.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.4111, allocations: 107.8 kB / 456 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/0.4135, allocations: 468.8 kB / 456.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-05/0.4136, allocations: 18.7 kB / 456.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005454/0.4191, allocations: 3.15 MB / 459.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4191, allocations: 1.094 kB / 459.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/0.4223, allocations: 1.363 MB / 461 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.4228, allocations: 214.7 kB / 461.2 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.893e-05/0.4229, allocations: 15.34 kB / 461.2 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006273/0.4235, allocations: 46.59 kB / 461.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.4237, allocations: 42.31 kB / 461.3 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.4237, allocations: 27.95 kB / 461.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005567/0.4243, allocations: 388.7 kB / 461.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4243, allocations: 0 / 461.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008604/0.4251, allocations: 194.4 kB / 461.9 MB, free: 7.918 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.00367/0.4288, allocations: 1.952 MB / 463.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.4304, allocations: 0.7031 MB / 464.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4304, allocations: 0 / 464.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009822/0.4314, allocations: 0.5014 MB / 465 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000758/0.4321, allocations: 87.64 kB / 465.1 MB, free: 5.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009788/0.4419, allocations: 5.95 MB / 471.1 MB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000587/0.4425, allocations: 0.9001 MB / 472 MB, free: 1.094 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003646/0.4429, allocations: 72.97 kB / 472 MB, free: 1.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004161/0.4433, allocations: 238.4 kB / 472.3 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4433, allocations: 1.375 kB / 472.3 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04648/0.4898, allocations: 15.93 MB / 488.2 MB, free: 2.012 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.77, allocations: 11.47 kB / 488.2 MB, free: 2.004 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.352772634010762] 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.941987066005822 13.957272496 13.582776642 Calling exit ...