Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.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.001443/0.001443, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.642/1.642, allocations: 230.6 MB / 253.4 MB, free: 14.43 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.001617/0.001617, allocations: 215.5 kB / 310 MB, free: 3.078 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.0404/0.0404, allocations: 8.927 MB / 375.4 MB, free: 6.754 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.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",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.002508/0.002508, allocations: 83.88 kB / 0.49 GB, free: 44.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1339, allocations: 55.61 MB / 0.5443 GB, free: 5.199 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.005465/0.1393, allocations: 2.216 MB / 0.5464 GB, free: 2.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.1419, allocations: 1.126 MB / 0.5475 GB, free: 1.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.1421, allocations: 4 kB / 0.5475 GB, free: 1.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004861/0.1426, allocations: 111.5 kB / 0.5476 GB, free: 1.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004345/0.143, allocations: 147.3 kB / 0.5478 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.1433, allocations: 95.64 kB / 0.5479 GB, free: 1.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.1436, allocations: 243.1 kB / 0.5481 GB, free: 1.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.1438, allocations: 29.8 kB / 0.5481 GB, free: 1.215 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.144, allocations: 99.62 kB / 0.5482 GB, free: 1.117 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.1442, allocations: 111.6 kB / 0.5483 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.477e-05/0.1442, allocations: 12 kB / 0.5483 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.1444, allocations: 55.98 kB / 0.5484 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.685e-05/0.1445, allocations: 47.78 kB / 0.5484 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.1446, allocations: 87.47 kB / 0.5485 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005008/0.1451, allocations: 231 kB / 0.5488 GB, free: 0.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.1451, allocations: 7.984 kB / 0.5488 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1451, allocations: 0 / 0.5488 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1451, allocations: 0 / 0.5488 GB, free: 0.5742 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001033/0.1461, allocations: 442.9 kB / 0.5492 GB, free: 116 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/0.1462, allocations: 15.98 kB / 0.5492 GB, free: 100 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.135e-05/0.1462, allocations: 432 / 0.5492 GB, free: 100 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.064e-05/0.1463, allocations: 46.73 kB / 0.5492 GB, free: 44 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.74e-05/0.1464, allocations: 28.8 kB / 0.5493 GB, free: 16 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005392/0.1469, allocations: 190.1 kB / 0.5495 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.1469, allocations: 20.34 kB / 0.5495 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/0.147, allocations: 12 kB / 0.5495 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.1473, allocations: 123.4 kB / 0.5496 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1473, allocations: 0 / 0.5496 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.1473, allocations: 4 kB / 0.5496 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.393e-06/0.1473, allocations: 0 / 0.5496 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.1475, allocations: 80.41 kB / 0.5497 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009669/0.1485, allocations: 0.5091 MB / 0.5502 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004285/0.1489, allocations: 106.6 kB / 0.5503 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.407e-05/0.149, allocations: 40.84 kB / 0.5503 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.149, allocations: 0 / 0.5503 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.1493, allocations: 97.03 kB / 0.5504 GB, free: 14.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 3.286e-06/0.1493, allocations: 3.984 kB / 0.5504 GB, free: 14.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000454/0.1497, allocations: 149.4 kB / 0.5506 GB, free: 14.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/0.1498, allocations: 81.11 kB / 0.5506 GB, free: 14.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.1502, allocations: 276.9 kB / 0.5509 GB, free: 14.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.1502, allocations: 29.7 kB / 0.5509 GB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.1503, allocations: 140 kB / 0.5511 GB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.1504, allocations: 39.69 kB / 0.5511 GB, free: 13.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.063e-05/0.1504, allocations: 25.72 kB / 0.5511 GB, free: 13.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1506, allocations: 338.8 kB / 0.5514 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.718e-05/0.1507, allocations: 23.98 kB / 0.5515 GB, free: 13.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.1508, allocations: 68.28 kB / 0.5515 GB, free: 13.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.151, allocations: 87.3 kB / 0.5516 GB, free: 13.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.151, allocations: 8 kB / 0.5516 GB, free: 13.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002678/0.1513, allocations: 137.5 kB / 0.5518 GB, free: 13.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1513, allocations: 5.719 kB / 0.5518 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1513, allocations: 0 / 0.5518 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1513, allocations: 4 kB / 0.5518 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.1514, allocations: 27.98 kB / 0.5518 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.1514, allocations: 0 / 0.5518 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.1515, allocations: 19.88 kB / 0.5518 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.1516, allocations: 4 kB / 0.5518 GB, free: 13.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001991/0.1518, allocations: 145.8 kB / 0.552 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.1518, allocations: 19.86 kB / 0.552 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.1521, allocations: 131.3 kB / 0.5521 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1521, allocations: 4 kB / 0.5521 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1521, allocations: 3.938 kB / 0.5521 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1521, allocations: 0 / 0.5521 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.1524, allocations: 220.5 kB / 0.5523 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1524, allocations: 480 / 0.5523 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.803e-05/0.1525, allocations: 15.98 kB / 0.5523 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.1525, allocations: 8 kB / 0.5523 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1525, allocations: 0 / 0.5523 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1525, allocations: 0 / 0.5523 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1525, allocations: 3.938 kB / 0.5523 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.1528, allocations: 188.8 kB / 0.5525 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.191e-05/0.1529, allocations: 15.94 kB / 0.5525 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.1529, allocations: 4 kB / 0.5525 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.926e-05/0.153, allocations: 12.05 kB / 0.5526 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.153, allocations: 4 kB / 0.5526 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.153, allocations: 11.98 kB / 0.5526 GB, free: 12.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002138/0.1533, allocations: 200.4 kB / 0.5528 GB, free: 12.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1533, allocations: 0 / 0.5528 GB, free: 12.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.1535, allocations: 47.88 kB / 0.5528 GB, free: 12.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 3 ($whenCondition1,table.nextTimeEvent,table.nextTimeEventScaled) * Number of discrete states: 2 (table.nextTimeEvent,table.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002198/0.1557, allocations: 1.022 MB / 0.5538 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002819/0.156, allocations: 71.91 kB / 0.5539 GB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.156, allocations: 0 / 0.5539 GB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.1561, allocations: 35.92 kB / 0.5539 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.1565, allocations: 44.16 kB / 0.5539 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.1595, allocations: 2.098 MB / 0.556 GB, free: 8.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.1599, allocations: 0.732 MB / 0.5567 GB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.935e-05/0.16, allocations: 21.47 kB / 0.5567 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.1601, allocations: 63.36 kB / 0.5568 GB, free: 8.031 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1601, allocations: 0 / 0.5568 GB, free: 8.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.1908, allocations: 4.752 MB / 0.5614 GB, free: 3.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.71, allocations: 4.062 kB / 0.5614 GB, free: 3.348 MB / 382.1 MB " [Timeout remaining time 647] (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Tables_fmu --startTime=0 --stopTime=4 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.328223335905932] Failed to read output from testmodel.py, exit status != 0: 12.926333426032215 13.209100485 13.060832617 Calling exit ...