Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.416/1.416, allocations: 230.6 MB / 254.8 MB, free: 15.09 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 55.92 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1366, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.007451/0.144, allocations: 4.399 MB / 431.4 MB, free: 376 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2853/0.4293, allocations: 1.638 MB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000593/0.4299, allocations: 14.47 kB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005141/0.4304, allocations: 127 kB / 433.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.4316, allocations: 371 kB / 433.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000611/0.4322, allocations: 242.2 kB / 433.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009154/0.4331, allocations: 0.9826 MB / 434.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.4334, allocations: 160.3 kB / 434.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005065/0.4339, allocations: 391.3 kB / 435.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004745/0.4344, allocations: 425.4 kB / 435.7 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.4345, allocations: 95.94 kB / 435.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000491/0.435, allocations: 222.1 kB / 436 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.4352, allocations: 196.6 kB / 436.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004479/0.4356, allocations: 420.4 kB / 436.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001783/0.4374, allocations: 1.177 MB / 437.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4374, allocations: 0.5625 kB / 437.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4374, allocations: 0 / 437.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.4374, allocations: 1.344 kB / 437.8 MB, free: 6.348 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.002653/0.4401, allocations: 1.119 MB / 438.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.4401, allocations: 10.06 kB / 439 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.335e-05/0.4402, allocations: 14.59 kB / 439 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.4403, allocations: 102.5 kB / 439.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003028/0.4406, allocations: 92.61 kB / 439.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000844/0.4414, allocations: 0.5176 MB / 439.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.626e-05/0.4415, allocations: 73.92 kB / 439.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002079/0.4417, allocations: 66.56 kB / 439.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.4429, allocations: 0.6066 MB / 440.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.4429, allocations: 0 / 440.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.67e-05/0.443, allocations: 23.12 kB / 440.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.443, allocations: 13.66 kB / 440.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.4441, allocations: 0.5295 MB / 441 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.4473, allocations: 2.295 MB / 443.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.4483, allocations: 454.5 kB / 443.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.4489, allocations: 248.5 kB / 444 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.4489, allocations: 6.344 kB / 444 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.449, allocations: 42.75 kB / 444 MB, free: 2.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.234e-06/0.449, allocations: 0 / 444 MB, free: 2.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01299/0.4619, allocations: 3.558 MB / 447.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.673e-05/0.462, allocations: 84.17 kB / 447.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000752/0.4627, allocations: 0.5378 MB / 448.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.7e-05/0.4628, allocations: 40.8 kB / 448.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.463, allocations: 315.8 kB / 448.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.4631, allocations: 223.2 kB / 448.8 MB, free: 420 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.4633, allocations: 112.3 kB / 448.9 MB, free: 360 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.417e-05/0.4634, allocations: 366 kB / 449.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007286/0.4641, allocations: 266.4 kB / 449.5 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006722/0.4648, allocations: 357.5 kB / 449.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.466, allocations: 0.5997 MB / 450.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.466, allocations: 0 / 450.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001713/0.4677, allocations: 0.7442 MB / 451.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.4678, allocations: 7.625 kB / 451.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.4678, allocations: 6.688 kB / 451.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001982/0.468, allocations: 39.3 kB / 451.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008216/0.4688, allocations: 162.4 kB / 451.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.4702, allocations: 1.433 MB / 452.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/0.4709, allocations: 34.81 kB / 452.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.4709, allocations: 28.28 kB / 452.9 MB, free: 13.62 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.0003811/0.4713, allocations: 202.9 kB / 453.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.4716, allocations: 67.03 kB / 453.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.4737, allocations: 0.8378 MB / 454 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4737, allocations: 6.875 kB / 454 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.4737, allocations: 0.7031 kB / 454 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.4737, allocations: 4.562 kB / 454 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004219/0.4779, allocations: 1.842 MB / 455.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.4779, allocations: 0.9844 kB / 455.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005077/0.4784, allocations: 106.9 kB / 456 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002283/0.4807, allocations: 472.8 kB / 456.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/0.4808, allocations: 14.22 kB / 456.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005228/0.486, allocations: 3.155 MB / 459.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.486, allocations: 5.094 kB / 459.6 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.4893, allocations: 1.363 MB / 461 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004453/0.4897, allocations: 214.1 kB / 461.2 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.949e-05/0.4898, allocations: 14 kB / 461.2 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005963/0.4904, allocations: 38.28 kB / 461.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.4906, allocations: 50.33 kB / 461.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.4906, allocations: 21.62 kB / 461.3 MB, free: 8.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005849/0.4912, allocations: 392.2 kB / 461.7 MB, free: 8.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4912, allocations: 0 / 461.7 MB, free: 8.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009067/0.4921, allocations: 189.6 kB / 461.8 MB, free: 8.133 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.003874/0.496, allocations: 1.955 MB / 463.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001801/0.4978, allocations: 0.7146 MB / 464.5 MB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4978, allocations: 1.906 kB / 464.5 MB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.4989, allocations: 0.4968 MB / 465 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/0.4996, allocations: 103.9 kB / 465.1 MB, free: 5.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009911/0.5096, allocations: 5.93 MB / 471 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.5101, allocations: 0.899 MB / 471.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004137/0.5106, allocations: 71.05 kB / 472 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.511, allocations: 243.1 kB / 472.3 MB, free: 1.074 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.511, allocations: 4 kB / 472.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04495/0.556, allocations: 15.93 MB / 488.2 MB, free: 2.312 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.4, allocations: 10.62 kB / 488.2 MB, free: 2.305 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.902377394028008] 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.552372202975675 13.565497493 13.125171165 Calling exit ...