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.00141/0.00141, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.627/1.627, allocations: 230.6 MB / 250.5 MB, free: 9.395 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.001772/0.001772, allocations: 212.4 kB / 306.7 MB, free: 4.363 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.04257/0.04257, allocations: 8.899 MB / 371.7 MB, free: 3.492 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.002494/0.002494, allocations: 91.86 kB / 496.4 MB, free: 9.879 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4687/0.4712, allocations: 55.57 MB / 0.5391 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.004451/0.4756, allocations: 2.194 MB / 0.5412 GB, free: 25.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.4778, allocations: 1.115 MB / 0.5423 GB, free: 24.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.478, allocations: 3.219 kB / 0.5423 GB, free: 24.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005507/0.4785, allocations: 106.4 kB / 0.5424 GB, free: 24.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005239/0.4791, allocations: 146.9 kB / 0.5425 GB, free: 24.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.4794, allocations: 94.67 kB / 0.5426 GB, free: 24.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003163/0.4797, allocations: 230.6 kB / 0.5428 GB, free: 24.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.4799, allocations: 37.25 kB / 0.5429 GB, free: 24.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.4801, allocations: 99.22 kB / 0.543 GB, free: 24.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.4803, allocations: 112 kB / 0.5431 GB, free: 23.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.4803, allocations: 12.53 kB / 0.5431 GB, free: 23.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.4804, allocations: 61.81 kB / 0.5432 GB, free: 23.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.421e-05/0.4805, allocations: 40.42 kB / 0.5432 GB, free: 23.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.858e-05/0.4806, allocations: 95.27 kB / 0.5433 GB, free: 23.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.481, allocations: 229.3 kB / 0.5435 GB, free: 23.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.481, allocations: 0 / 0.5435 GB, free: 23.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.481, allocations: 3.156 kB / 0.5435 GB, free: 23.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.481, allocations: 0 / 0.5435 GB, free: 23.79 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008539/0.4819, allocations: 0.5203 MB / 0.544 GB, free: 23.31 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.4819, allocations: 9.031 kB / 0.544 GB, free: 23.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.076e-05/0.4819, allocations: 7.328 kB / 0.544 GB, free: 23.31 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.012e-05/0.482, allocations: 41.44 kB / 0.5441 GB, free: 23.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.482, allocations: 25.17 kB / 0.5441 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.4824, allocations: 246.1 kB / 0.5443 GB, free: 23.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.4825, allocations: 14.36 kB / 0.5443 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.032e-05/0.4825, allocations: 17.58 kB / 0.5444 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.4828, allocations: 121.8 kB / 0.5445 GB, free: 22.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.4828, allocations: 0 / 0.5445 GB, free: 22.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.4828, allocations: 0 / 0.5445 GB, free: 22.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.4828, allocations: 6.844 kB / 0.5445 GB, free: 22.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.483, allocations: 75.91 kB / 0.5446 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008216/0.4838, allocations: 0.5514 MB / 0.5451 GB, free: 22.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.4842, allocations: 97 kB / 0.5452 GB, free: 22.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.15e-05/0.4843, allocations: 43.36 kB / 0.5452 GB, free: 22.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.4844, allocations: 2.719 kB / 0.5452 GB, free: 22.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.4846, allocations: 96.81 kB / 0.5453 GB, free: 22.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.4846, allocations: 0 / 0.5453 GB, free: 22.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004422/0.485, allocations: 147.2 kB / 0.5455 GB, free: 22.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.4851, allocations: 80.27 kB / 0.5455 GB, free: 22.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.4854, allocations: 271.1 kB / 0.5458 GB, free: 22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.4854, allocations: 32.83 kB / 0.5458 GB, free: 21.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.4855, allocations: 144.3 kB / 0.546 GB, free: 21.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.4855, allocations: 33.72 kB / 0.546 GB, free: 21.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.442e-05/0.4856, allocations: 42.61 kB / 0.546 GB, free: 21.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.482e-05/0.4856, allocations: 333 kB / 0.5464 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.571e-05/0.4857, allocations: 27.17 kB / 0.5464 GB, free: 21.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.057e-05/0.4858, allocations: 65.55 kB / 0.5464 GB, free: 21.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.486, allocations: 93.31 kB / 0.5465 GB, free: 21.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.486, allocations: 0 / 0.5465 GB, free: 21.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000241/0.4862, allocations: 131.9 kB / 0.5467 GB, free: 21.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.4862, allocations: 6.281 kB / 0.5467 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4862, allocations: 0 / 0.5467 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/0.4863, allocations: 7.312 kB / 0.5467 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.4864, allocations: 26.53 kB / 0.5467 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.4864, allocations: 11.44 kB / 0.5467 GB, free: 21.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.06e-05/0.4865, allocations: 13.72 kB / 0.5467 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.4865, allocations: 7.312 kB / 0.5467 GB, free: 21.23 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.0001512/0.4866, allocations: 146.7 kB / 0.5469 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.4867, allocations: 25.14 kB / 0.5469 GB, free: 21.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.63e-05/0.4868, allocations: 26.42 kB / 0.5469 GB, free: 21.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4868, allocations: 4 kB / 0.5469 GB, free: 21.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.4868, allocations: 0 / 0.5469 GB, free: 21.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4868, allocations: 0 / 0.5469 GB, free: 21.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.487, allocations: 241.8 kB / 0.5472 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.487, allocations: 2.969 kB / 0.5472 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.848e-05/0.4871, allocations: 19.16 kB / 0.5472 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4871, allocations: 0 / 0.5472 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.4871, allocations: 0 / 0.5472 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.4871, allocations: 3.031 kB / 0.5472 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4871, allocations: 0 / 0.5472 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.4875, allocations: 198.7 kB / 0.5474 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.4875, allocations: 88.14 kB / 0.5474 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.4876, allocations: 3.219 kB / 0.5475 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.723e-05/0.4876, allocations: 10.48 kB / 0.5475 GB, free: 20.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.468e-05/0.4877, allocations: 3.188 kB / 0.5475 GB, free: 20.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.4877, allocations: 6.578 kB / 0.5475 GB, free: 20.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001749/0.4879, allocations: 199.5 kB / 0.5477 GB, free: 20.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4879, allocations: 4 kB / 0.5477 GB, free: 20.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.4881, allocations: 44.2 kB / 0.5477 GB, free: 20.47 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.nextTimeEventScaled,table.nextTimeEvent) * 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.001967/0.4901, allocations: 1.024 MB / 0.5487 GB, free: 19.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.4904, allocations: 85.62 kB / 0.5488 GB, free: 19.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4904, allocations: 0 / 0.5488 GB, free: 19.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.663e-05/0.4905, allocations: 30.69 kB / 0.5488 GB, free: 19.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.4908, allocations: 35.45 kB / 0.5489 GB, free: 19.67 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.4932, allocations: 2.09 MB / 0.5509 GB, free: 18.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.4934, allocations: 0.7334 MB / 0.5516 GB, free: 17.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.618e-05/0.4935, allocations: 29.16 kB / 0.5516 GB, free: 17.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.416e-05/0.4936, allocations: 59.06 kB / 0.5517 GB, free: 17.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4936, allocations: 0 / 0.5517 GB, free: 17.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.5217, allocations: 4.559 MB / 0.5561 GB, free: 16.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.429/9.951, allocations: 7.094 kB / 0.5562 GB, free: 16.53 MB / 382.1 MB " [Timeout remaining time 650] (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: 13.110028203984257] Failed to read output from testmodel.py, exit status != 0: 10.137274578970391 10.159389794 9.673746745 Calling exit ...