Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.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.001674/0.001674, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] 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.003091/0.003091, allocations: 190.1 kB / 22.22 MB, free: 5.105 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.55/1.55, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2632/0.2632, allocations: 31.56 MB / 337.8 MB, free: 9.48 MB / 270.1 MB " [Timeout remaining time 179] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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: translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") translateModel(BusinessSimulation.Examples.LookupFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LookupFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 71.88 kB / 472.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3395, allocations: 59.53 MB / 0.5199 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007417/0.3469, allocations: 7.051 MB / 0.5268 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004455/0.3514, allocations: 2.263 MB / 0.529 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.3529, allocations: 28.5 kB / 0.529 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007493/0.3537, allocations: 173.7 kB / 0.5292 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009034/0.3546, allocations: 149.3 kB / 0.5293 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.3557, allocations: 351.3 kB / 0.5297 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.3568, allocations: 0.7188 MB / 0.5304 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000556/0.3573, allocations: 258.6 kB / 0.5306 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003801/0.3577, allocations: 249 kB / 0.5308 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.358, allocations: 249.1 kB / 0.5311 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.3582, allocations: 45.59 kB / 0.5311 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002646/0.3584, allocations: 90.98 kB / 0.5312 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.3586, allocations: 150.8 kB / 0.5313 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002839/0.3589, allocations: 287.5 kB / 0.5316 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.36, allocations: 0.6416 MB / 0.5322 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.36, allocations: 0 / 0.5322 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.36, allocations: 0 / 0.5322 GB, free: 272 kB / 382.1 MB Notification: Performance of Transformations before backend: time 3.559e-05/0.36, allocations: 0 / 0.5322 GB, free: 272 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002314/0.3623, allocations: 0.9543 MB / 0.5332 GB, free: 15.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.3624, allocations: 9.703 kB / 0.5332 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005022/0.3629, allocations: 103.5 kB / 0.5333 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.3641, allocations: 430.3 kB / 0.5337 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.494e-05/0.3642, allocations: 31.56 kB / 0.5337 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.102e-05/0.3643, allocations: 35.22 kB / 0.5338 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3655, allocations: 476 kB / 0.5342 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3655, allocations: 3.938 kB / 0.5342 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.965e-05/0.3655, allocations: 17.69 kB / 0.5342 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.3656, allocations: 8.5 kB / 0.5342 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008793/0.3664, allocations: 265.2 kB / 0.5345 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.3689, allocations: 1.067 MB / 0.5355 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007936/0.3697, allocations: 179.4 kB / 0.5357 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.37, allocations: 76.73 kB / 0.5358 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.367e-05/0.3701, allocations: 11.09 kB / 0.5358 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.3701, allocations: 38.67 kB / 0.5358 GB, free: 14.01 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.3701, allocations: 0 / 0.5358 GB, free: 14.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.001079/0.3712, allocations: 301.8 kB / 0.5361 GB, free: 13.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003192/0.3715, allocations: 442.2 kB / 0.5365 GB, free: 13.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00087/0.3724, allocations: 0.6395 MB / 0.5372 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.678e-05/0.3724, allocations: 31.86 kB / 0.5372 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/0.3727, allocations: 312.6 kB / 0.5375 GB, free: 12.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.3727, allocations: 42.09 kB / 0.5375 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.3729, allocations: 56.72 kB / 0.5376 GB, free: 12.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.3731, allocations: 362.2 kB / 0.5379 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002797/0.3734, allocations: 70.86 kB / 0.538 GB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003942/0.3738, allocations: 186 kB / 0.5382 GB, free: 12.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005676/0.3743, allocations: 162 kB / 0.5383 GB, free: 12.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3743, allocations: 0 / 0.5383 GB, free: 12.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007289/0.3751, allocations: 250.7 kB / 0.5386 GB, free: 12.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3751, allocations: 5.906 kB / 0.5386 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3751, allocations: 4.969 kB / 0.5386 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3751, allocations: 2.5 kB / 0.5386 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002862/0.3754, allocations: 46.42 kB / 0.5386 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3754, allocations: 1.688 kB / 0.5386 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003704/0.3758, allocations: 43.09 kB / 0.5387 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.3758, allocations: 9.828 kB / 0.5387 GB, free: 12.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0002491/0.376, allocations: 184.9 kB / 0.5389 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.3762, allocations: 60.28 kB / 0.5389 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005442/0.3767, allocations: 200.6 kB / 0.5391 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.3767, allocations: 2.25 kB / 0.5391 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.3767, allocations: 0.7969 kB / 0.5391 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.3767, allocations: 1.906 kB / 0.5391 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007751/0.3775, allocations: 446.2 kB / 0.5395 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3775, allocations: 1.188 kB / 0.5395 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.3777, allocations: 36.36 kB / 0.5396 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3777, allocations: 1.188 kB / 0.5396 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3777, allocations: 7.266 kB / 0.5396 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.3778, allocations: 3.938 kB / 0.5396 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3778, allocations: 1.188 kB / 0.5396 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007435/0.3785, allocations: 405.9 kB / 0.54 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.3787, allocations: 96.69 kB / 0.5401 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.962e-05/0.3788, allocations: 7.812 kB / 0.5401 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.3792, allocations: 42.08 kB / 0.5401 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.091e-05/0.3793, allocations: 12.81 kB / 0.5401 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3793, allocations: 3.484 kB / 0.5401 GB, free: 11.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006029/0.3799, allocations: 463.1 kB / 0.5406 GB, free: 10.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3799, allocations: 0 / 0.5406 GB, free: 10.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004514/0.3803, allocations: 108 kB / 0.5407 GB, free: 10.89 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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 Backend phase and start with SimCode phase: time 0.001352/0.3817, allocations: 356.4 kB / 0.541 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006614/0.3824, allocations: 165.8 kB / 0.5412 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3824, allocations: 0 / 0.5412 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.3826, allocations: 82.2 kB / 0.5413 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008831/0.3835, allocations: 137.8 kB / 0.5414 GB, free: 10.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.3852, allocations: 0.8779 MB / 0.5422 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.3858, allocations: 0.8847 MB / 0.5431 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002504/0.386, allocations: 66.25 kB / 0.5432 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.3861, allocations: 37.52 kB / 0.5432 GB, free: 9.344 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3861, allocations: 3.938 kB / 0.5432 GB, free: 9.34 MB / 398.1 MB Notification: Performance of Templates: time 0.01337/0.3995, allocations: 6.511 MB / 0.5496 GB, free: 6.391 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.sim & ./BusinessSimulation_BusinessSimulation.Examples.LookupFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.38876192830503] Failed to read output from testmodel.py, exit status != 0: 0.40835819859057665 0.422470223 0.05915841599999994 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f60a83d17b0>