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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 109.3 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 225.6 MB / 244.8 MB, free: 14.2 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 199.7 kB / 299.8 MB, free: 9.844 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04066/0.04066, allocations: 8.932 MB / 363.6 MB, free: 10.19 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002418/0.002418, allocations: 79.55 kB / 486 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1265, allocations: 54.42 MB / 0.5278 GB, free: 1.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.006005/0.1325, allocations: 3.839 MB / 0.5315 GB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002566/0.135, allocations: 0.9231 MB / 0.5324 GB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004277/0.1355, allocations: 11.94 kB / 0.5324 GB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.1358, allocations: 91.14 kB / 0.5325 GB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005307/0.1363, allocations: 154.6 kB / 0.5327 GB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.1368, allocations: 163.8 kB / 0.5328 GB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008679/0.1377, allocations: 0.6463 MB / 0.5335 GB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.1381, allocations: 200.9 kB / 0.5337 GB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003707/0.1384, allocations: 259.1 kB / 0.5339 GB, free: 11.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.1388, allocations: 270.8 kB / 0.5342 GB, free: 10.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.1389, allocations: 68 kB / 0.5342 GB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.95e-05/0.139, allocations: 71.94 kB / 0.5343 GB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.1392, allocations: 139.5 kB / 0.5344 GB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003215/0.1395, allocations: 306.6 kB / 0.5347 GB, free: 10.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.1405, allocations: 0.7245 MB / 0.5354 GB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.1406, allocations: 0 / 0.5354 GB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.06e-06/0.1406, allocations: 3.938 kB / 0.5354 GB, free: 9.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.1406, allocations: 0 / 0.5354 GB, free: 9.508 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002023/0.1426, allocations: 0.8494 MB / 0.5363 GB, free: 8.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/0.1427, allocations: 16.02 kB / 0.5363 GB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.1428, allocations: 90.7 kB / 0.5364 GB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.143, allocations: 64.56 kB / 0.5364 GB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008563/0.1439, allocations: 363.8 kB / 0.5368 GB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/0.1439, allocations: 41.62 kB / 0.5368 GB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.144, allocations: 52.38 kB / 0.5369 GB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.1451, allocations: 0.5225 MB / 0.5374 GB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1451, allocations: 0 / 0.5374 GB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.1451, allocations: 24 kB / 0.5374 GB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.1451, allocations: 12 kB / 0.5374 GB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008583/0.146, allocations: 383.8 kB / 0.5378 GB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.1493, allocations: 1.895 MB / 0.5396 GB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007174/0.15, allocations: 300.2 kB / 0.5399 GB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/0.1505, allocations: 221.3 kB / 0.5401 GB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.1506, allocations: 4.281 kB / 0.5401 GB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.1506, allocations: 34.84 kB / 0.5402 GB, free: 4.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.653e-06/0.1506, allocations: 0 / 0.5402 GB, free: 4.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.004896/0.1555, allocations: 1.727 MB / 0.5418 GB, free: 2.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1555, allocations: 59.84 kB / 0.5419 GB, free: 2.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.1559, allocations: 299.2 kB / 0.5422 GB, free: 2.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.156, allocations: 29.7 kB / 0.5422 GB, free: 2.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.1562, allocations: 272.9 kB / 0.5425 GB, free: 1.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.1563, allocations: 178.5 kB / 0.5427 GB, free: 1.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.1565, allocations: 82.25 kB / 0.5427 GB, free: 1.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1566, allocations: 350.8 kB / 0.5431 GB, free: 1.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.157, allocations: 145.1 kB / 0.5432 GB, free: 1.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.1574, allocations: 238.5 kB / 0.5434 GB, free: 0.9141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007847/0.1582, allocations: 413.1 kB / 0.5438 GB, free: 492 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1582, allocations: 0 / 0.5438 GB, free: 492 kB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001143/0.1593, allocations: 0.5558 MB / 0.5444 GB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.1594, allocations: 11.92 kB / 0.5444 GB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.1594, allocations: 4 kB / 0.5444 GB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/0.1597, allocations: 105.8 kB / 0.5445 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004582/0.1602, allocations: 107.9 kB / 0.5446 GB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00359/0.1638, allocations: 3.594 MB / 0.5481 GB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.1641, allocations: 20.06 kB / 0.5481 GB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.87e-05/0.1641, allocations: 31.86 kB / 0.5481 GB, free: 11.76 MB / 366.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.0003055/0.1644, allocations: 177.7 kB / 0.5483 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.059e-05/0.1645, allocations: 43.77 kB / 0.5484 GB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.511e-05/0.1646, allocations: 43.73 kB / 0.5484 GB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.1646, allocations: 8 kB / 0.5484 GB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.1646, allocations: 0 / 0.5484 GB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1647, allocations: 7.984 kB / 0.5484 GB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.1666, allocations: 1.121 MB / 0.5495 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.1666, allocations: 4 kB / 0.5495 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000382/0.1669, allocations: 79.92 kB / 0.5496 GB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/0.1672, allocations: 101.5 kB / 0.5497 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.1672, allocations: 12 kB / 0.5497 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.1705, allocations: 3.593 MB / 0.5532 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.1705, allocations: 3.938 kB / 0.5532 GB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.172, allocations: 0.7764 MB / 0.554 GB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.1722, allocations: 148.9 kB / 0.5541 GB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.963e-05/0.1722, allocations: 11.94 kB / 0.5541 GB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.1725, allocations: 23.98 kB / 0.5541 GB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.1726, allocations: 36.02 kB / 0.5542 GB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.1726, allocations: 16.17 kB / 0.5542 GB, free: 5.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002464/0.1729, allocations: 209.9 kB / 0.5544 GB, free: 4.961 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1729, allocations: 0 / 0.5544 GB, free: 4.961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006627/0.1736, allocations: 120 kB / 0.5545 GB, free: 4.844 MB / 366.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.001803/0.1754, allocations: 1.323 MB / 0.5558 GB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.1768, allocations: 0.6433 MB / 0.5564 GB, free: 2.816 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.037e-05/0.1768, allocations: 4.125 kB / 0.5564 GB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008016/0.1776, allocations: 473.2 kB / 0.5569 GB, free: 2.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.178, allocations: 50.98 kB / 0.5569 GB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006571/0.1846, allocations: 4.033 MB / 0.5609 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/0.1852, allocations: 0.8471 MB / 0.5617 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.1854, allocations: 43.25 kB / 0.5617 GB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.1857, allocations: 167.4 kB / 0.5619 GB, free: 13.02 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1857, allocations: 0 / 0.5619 GB, free: 13.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05474/0.2404, allocations: 8.95 MB / 0.5706 GB, free: 4.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.68, allocations: 10.81 kB / 0.5706 GB, free: 4.195 MB / 382.1 MB " [Timeout remaining time 649] (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: 13.655310313217342] Failed to read output from testmodel.py, exit status != 0: 10.946774199139327 10.785048438 10.641246794 Calling exit ...