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.001402/0.001402, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.607/1.607, allocations: 230.6 MB / 253.4 MB, free: 14.48 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.001965/0.001965, allocations: 205.8 kB / 310 MB, free: 3.125 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.04065/0.04065, allocations: 8.916 MB / 375.4 MB, free: 6.77 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.002764/0.002764, allocations: 83.88 kB / 0.49 GB, free: 44.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1217, allocations: 55.62 MB / 0.5443 GB, free: 5.23 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.006058/0.1277, allocations: 3.883 MB / 0.5481 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.13, allocations: 1.016 MB / 0.549 GB, free: 308 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003368/0.1303, allocations: 11.94 kB / 0.5491 GB, free: 296 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002718/0.1306, allocations: 83.16 kB / 0.5491 GB, free: 212 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004693/0.1311, allocations: 158.6 kB / 0.5493 GB, free: 52 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005049/0.1316, allocations: 179.8 kB / 0.5495 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007739/0.1323, allocations: 0.6423 MB / 0.5501 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.1327, allocations: 201.4 kB / 0.5503 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004474/0.1332, allocations: 267.1 kB / 0.5505 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.1336, allocations: 274.7 kB / 0.5508 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.273e-05/0.1337, allocations: 68 kB / 0.5509 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.1338, allocations: 76 kB / 0.5509 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1339, allocations: 135.5 kB / 0.5511 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002826/0.1342, allocations: 298.7 kB / 0.5513 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000948/0.1351, allocations: 0.7433 MB / 0.5521 GB, free: 13.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1351, allocations: 0 / 0.5521 GB, free: 13.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1351, allocations: 0 / 0.5521 GB, free: 13.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1351, allocations: 4 kB / 0.5521 GB, free: 13.18 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.001569/0.1367, allocations: 0.7663 MB / 0.5528 GB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.1368, allocations: 15.98 kB / 0.5528 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.895e-05/0.1368, allocations: 13.5 kB / 0.5529 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.1369, allocations: 90.7 kB / 0.5529 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002606/0.1372, allocations: 72.55 kB / 0.553 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006328/0.1378, allocations: 322.3 kB / 0.5533 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.759e-05/0.1379, allocations: 45.69 kB / 0.5534 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.513e-05/0.138, allocations: 48.38 kB / 0.5534 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009843/0.1389, allocations: 0.5146 MB / 0.5539 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.139, allocations: 0 / 0.5539 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.868e-05/0.139, allocations: 24 kB / 0.5539 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.139, allocations: 12 kB / 0.5539 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009262/0.14, allocations: 395.7 kB / 0.5543 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003095/0.1431, allocations: 1.839 MB / 0.5561 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007522/0.1438, allocations: 291.4 kB / 0.5564 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/0.1444, allocations: 217.3 kB / 0.5566 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.1444, allocations: 288 / 0.5566 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.1445, allocations: 42.84 kB / 0.5566 GB, free: 8.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.934e-06/0.1445, allocations: 0 / 0.5566 GB, free: 8.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.005009/0.1495, allocations: 1.575 MB / 0.5582 GB, free: 6.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.1495, allocations: 63.77 kB / 0.5582 GB, free: 6.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.1499, allocations: 304.5 kB / 0.5585 GB, free: 6.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/0.1499, allocations: 33.7 kB / 0.5586 GB, free: 6.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.1501, allocations: 272.9 kB / 0.5588 GB, free: 5.996 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.1503, allocations: 166.5 kB / 0.559 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.1504, allocations: 86.14 kB / 0.5591 GB, free: 5.742 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1506, allocations: 350.7 kB / 0.5594 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.151, allocations: 152.9 kB / 0.5595 GB, free: 5.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004364/0.1514, allocations: 241.9 kB / 0.5598 GB, free: 4.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008837/0.1523, allocations: 413.1 kB / 0.5602 GB, free: 4.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1523, allocations: 0 / 0.5602 GB, free: 4.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001338/0.1537, allocations: 0.5599 MB / 0.5607 GB, free: 3.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.696e-05/0.1537, allocations: 4 kB / 0.5607 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.1537, allocations: 7.938 kB / 0.5607 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004034/0.1541, allocations: 89.67 kB / 0.5608 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005123/0.1546, allocations: 107.9 kB / 0.5609 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004098/0.1587, allocations: 3.391 MB / 0.5642 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004924/0.1592, allocations: 23.97 kB / 0.5643 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.165e-05/0.1593, allocations: 19.98 kB / 0.5643 GB, free: 92 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.3271/0.4863, allocations: 175.1 kB / 0.5644 GB, free: 24.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.4865, allocations: 39.77 kB / 0.5645 GB, free: 24.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.4866, allocations: 48.06 kB / 0.5645 GB, free: 24.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.4866, allocations: 4.844 kB / 0.5645 GB, free: 24.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.4866, allocations: 3.219 kB / 0.5645 GB, free: 24.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.4866, allocations: 6.281 kB / 0.5645 GB, free: 24.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.4884, allocations: 1.092 MB / 0.5656 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.4885, allocations: 0.5 kB / 0.5656 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.4889, allocations: 86.64 kB / 0.5657 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002453/0.4891, allocations: 96.33 kB / 0.5658 GB, free: 24.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.4891, allocations: 12.95 kB / 0.5658 GB, free: 24.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/0.4914, allocations: 3.384 MB / 0.5691 GB, free: 21.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4914, allocations: 6.297 kB / 0.5691 GB, free: 21.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.4927, allocations: 0.7764 MB / 0.5699 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.4929, allocations: 72.64 kB / 0.5699 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.4929, allocations: 9.625 kB / 0.5699 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.4932, allocations: 25.66 kB / 0.57 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.704e-05/0.4933, allocations: 42.61 kB / 0.57 GB, free: 21.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.4933, allocations: 14.16 kB / 0.57 GB, free: 21.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001932/0.4935, allocations: 209.8 kB / 0.5702 GB, free: 21.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4935, allocations: 0 / 0.5702 GB, free: 21.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006811/0.4942, allocations: 120.4 kB / 0.5703 GB, free: 21.73 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.001547/0.4958, allocations: 1.334 MB / 0.5716 GB, free: 21.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.497, allocations: 0.6349 MB / 0.5723 GB, free: 20.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4971, allocations: 2.219 kB / 0.5723 GB, free: 20.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007001/0.4978, allocations: 467.2 kB / 0.5727 GB, free: 20.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.4982, allocations: 55.17 kB / 0.5728 GB, free: 20.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006897/0.5051, allocations: 4.055 MB / 0.5767 GB, free: 18.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004823/0.5056, allocations: 0.8418 MB / 0.5775 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002595/0.5059, allocations: 43.12 kB / 0.5776 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002479/0.5061, allocations: 164.5 kB / 0.5777 GB, free: 17.58 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5061, allocations: 1.125 kB / 0.5777 GB, free: 17.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05026/0.5564, allocations: 9.389 MB / 0.5869 GB, free: 15.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.68, allocations: 13.11 kB / 0.5869 GB, free: 15.82 MB / 382.1 MB " [Timeout remaining time 646] (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: 16.91531950701028] Failed to read output from testmodel.py, exit status != 0: 13.85020720900502 13.867682731 13.729118708 Calling exit ...