Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.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.001423/0.001423, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.46/1.46, allocations: 230.6 MB / 253.4 MB, free: 14.29 MB / 206.1 MB " [Timeout remaining time 178] 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.001598/0.001598, allocations: 212.2 kB / 310 MB, free: 3.035 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04052/0.04052, allocations: 8.915 MB / 375.4 MB, free: 6.582 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 83.88 kB / 0.4899 GB, free: 44.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09635, allocations: 55.61 MB / 0.5442 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.00496/0.1013, allocations: 3.505 MB / 0.5476 GB, free: 1.543 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.1031, allocations: 0.9543 MB / 0.5486 GB, free: 0.582 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002236/0.1033, allocations: 11.94 kB / 0.5486 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002242/0.1035, allocations: 91.08 kB / 0.5486 GB, free: 492 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.1039, allocations: 154.6 kB / 0.5488 GB, free: 336 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.1044, allocations: 183.7 kB / 0.549 GB, free: 152 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007107/0.1051, allocations: 0.6425 MB / 0.5496 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003304/0.1054, allocations: 201.3 kB / 0.5498 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003632/0.1058, allocations: 263.1 kB / 0.55 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.1061, allocations: 282.7 kB / 0.5503 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-05/0.1062, allocations: 68 kB / 0.5504 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1064, allocations: 76 kB / 0.5504 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.1065, allocations: 131.6 kB / 0.5506 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.1068, allocations: 250.9 kB / 0.5508 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.1076, allocations: 0.7472 MB / 0.5515 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1076, allocations: 4 kB / 0.5515 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1076, allocations: 0 / 0.5515 GB, free: 13.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1076, allocations: 0 / 0.5515 GB, free: 13.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00141/0.109, allocations: 0.7663 MB / 0.5523 GB, free: 12.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.109, allocations: 11.98 kB / 0.5523 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.954e-05/0.1091, allocations: 17.5 kB / 0.5523 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.1092, allocations: 90.7 kB / 0.5524 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.1094, allocations: 72.55 kB / 0.5525 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000506/0.1099, allocations: 314.4 kB / 0.5528 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.1099, allocations: 41.69 kB / 0.5528 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.11, allocations: 48.38 kB / 0.5529 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.1111, allocations: 0.5977 MB / 0.5534 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1111, allocations: 0 / 0.5534 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.171e-05/0.1111, allocations: 24 kB / 0.5535 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1111, allocations: 12 kB / 0.5535 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008293/0.112, allocations: 387.8 kB / 0.5539 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.1149, allocations: 1.711 MB / 0.5555 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007347/0.1157, allocations: 289.4 kB / 0.5558 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/0.1162, allocations: 213.3 kB / 0.556 GB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.1162, allocations: 4.281 kB / 0.556 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.1163, allocations: 46.72 kB / 0.5561 GB, free: 8.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.814e-06/0.1163, allocations: 3.938 kB / 0.5561 GB, free: 8.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.004947/0.1212, allocations: 1.581 MB / 0.5576 GB, free: 7.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.1213, allocations: 63.77 kB / 0.5577 GB, free: 6.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.1216, allocations: 304.5 kB / 0.558 GB, free: 6.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/0.1217, allocations: 33.7 kB / 0.558 GB, free: 6.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.1219, allocations: 268.9 kB / 0.5582 GB, free: 6.355 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.122, allocations: 166.5 kB / 0.5584 GB, free: 6.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.1221, allocations: 86.14 kB / 0.5585 GB, free: 6.102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1223, allocations: 346.8 kB / 0.5588 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/0.1227, allocations: 156.9 kB / 0.559 GB, free: 5.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004196/0.1231, allocations: 241.9 kB / 0.5592 GB, free: 5.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.1239, allocations: 409.1 kB / 0.5596 GB, free: 4.898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1239, allocations: 0 / 0.5596 GB, free: 4.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001155/0.125, allocations: 0.5559 MB / 0.5601 GB, free: 4.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.125, allocations: 5.875 kB / 0.5601 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.125, allocations: 11.92 kB / 0.5601 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003034/0.1253, allocations: 93.83 kB / 0.5602 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004759/0.1258, allocations: 107.9 kB / 0.5603 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/0.1289, allocations: 3.367 MB / 0.5636 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.1292, allocations: 23.92 kB / 0.5636 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.1293, allocations: 16 kB / 0.5637 GB, free: 488 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00026/0.1295, allocations: 181.8 kB / 0.5638 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.543e-05/0.1296, allocations: 39.77 kB / 0.5639 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.647e-05/0.1297, allocations: 43.8 kB / 0.5639 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1297, allocations: 12 kB / 0.5639 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1297, allocations: 0 / 0.5639 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1297, allocations: 3.938 kB / 0.5639 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2015/0.3312, allocations: 1.022 MB / 0.5649 GB, free: 25.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3313, allocations: 4 kB / 0.5649 GB, free: 25.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003975/0.3316, allocations: 84.19 kB / 0.565 GB, free: 25.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002436/0.3319, allocations: 100.8 kB / 0.5651 GB, free: 25.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.3319, allocations: 14.2 kB / 0.5651 GB, free: 25.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002131/0.334, allocations: 3.362 MB / 0.5684 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3341, allocations: 0 / 0.5684 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.3353, allocations: 0.7812 MB / 0.5692 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.3355, allocations: 65.83 kB / 0.5692 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.3355, allocations: 11.52 kB / 0.5692 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.3358, allocations: 25.8 kB / 0.5693 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.158e-05/0.3359, allocations: 33.69 kB / 0.5693 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.3359, allocations: 13.12 kB / 0.5693 GB, free: 22.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001719/0.3361, allocations: 217.4 kB / 0.5695 GB, free: 22.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3361, allocations: 3.781 kB / 0.5695 GB, free: 22.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006066/0.3367, allocations: 122 kB / 0.5696 GB, free: 22.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001373/0.3381, allocations: 1.317 MB / 0.5709 GB, free: 21.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.3392, allocations: 0.6467 MB / 0.5716 GB, free: 21.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3392, allocations: 0 / 0.5716 GB, free: 21.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006217/0.3398, allocations: 469.8 kB / 0.572 GB, free: 21.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.3402, allocations: 56.95 kB / 0.5721 GB, free: 21.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005396/0.3456, allocations: 4.045 MB / 0.576 GB, free: 19.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.3459, allocations: 243.8 kB / 0.5762 GB, free: 18.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002105/0.3461, allocations: 41.5 kB / 0.5763 GB, free: 18.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/0.3463, allocations: 164.9 kB / 0.5764 GB, free: 18.83 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3463, allocations: 0 / 0.5764 GB, free: 18.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05292/0.3992, allocations: 9.579 MB / 0.5858 GB, free: 17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.3, allocations: 8.453 kB / 0.5858 GB, free: 17 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_TestTransformer_fmu --startTime=0 --stopTime=0.08 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.139153872034512] Failed to read output from testmodel.py, exit status != 0: 12.47000307100825 12.484249162 12.374046468 Calling exit ...