Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.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.0007736/0.0007736, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] 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.000864/0.000864, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8938/0.8938, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.09898/0.09898, allocations: 24.12 MB / 283.3 MB, free: 5.473 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 420 MB, free: 8.523 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.491e-05, allocations: 9.594 kB / 420.1 MB, free: 8.516 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007041/0.007066, allocations: 6.439 MB / 426.5 MB, free: 2.043 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.0102, allocations: 2.369 MB / 428.9 MB, free: 15.66 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008336/0.01103, allocations: 27.75 kB / 428.9 MB, free: 15.64 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005018/0.01153, allocations: 170.4 kB / 429.1 MB, free: 15.47 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000586/0.01212, allocations: 198.5 kB / 429.3 MB, free: 15.28 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.01279, allocations: 346.8 kB / 429.6 MB, free: 14.94 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007854/0.01358, allocations: 0.7379 MB / 430.3 MB, free: 14.2 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.014, allocations: 241 kB / 430.6 MB, free: 13.96 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003605/0.01436, allocations: 343 kB / 430.9 MB, free: 13.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.01451, allocations: 175.3 kB / 431.1 MB, free: 13.46 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/0.01456, allocations: 44 kB / 431.1 MB, free: 13.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.0147, allocations: 87.86 kB / 431.2 MB, free: 13.33 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.01482, allocations: 151.3 kB / 431.3 MB, free: 13.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.01494, allocations: 159.4 kB / 431.5 MB, free: 13.02 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006289/0.01556, allocations: 0.6461 MB / 432.2 MB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.01557, allocations: 0 / 432.2 MB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.01557, allocations: 0 / 432.2 MB, free: 12.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.01558, allocations: 8 kB / 432.2 MB, free: 12.37 MB / 410.7 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.001089/0.01667, allocations: 0.9398 MB / 433.1 MB, free: 11.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.01671, allocations: 12.75 kB / 433.1 MB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.824e-05/0.01678, allocations: 78.45 kB / 433.2 MB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.01698, allocations: 103.4 kB / 433.3 MB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005788/0.01755, allocations: 436.2 kB / 433.7 MB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.01758, allocations: 29 kB / 433.7 MB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.01762, allocations: 36 kB / 433.8 MB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006538/0.01827, allocations: 0.8176 MB / 434.6 MB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.01828, allocations: 0 / 434.6 MB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.01831, allocations: 16 kB / 434.6 MB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.01832, allocations: 12 kB / 434.6 MB, free: 9.691 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004017/0.01872, allocations: 262.3 kB / 434.9 MB, free: 9.434 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.01994, allocations: 0.9862 MB / 435.9 MB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.02038, allocations: 181 kB / 436 MB, free: 8.203 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.02051, allocations: 77.61 kB / 436.1 MB, free: 8.121 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.02054, allocations: 4 kB / 436.1 MB, free: 8.117 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.02056, allocations: 38.55 kB / 436.2 MB, free: 8.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.02056, allocations: 0 / 436.2 MB, free: 8.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005524/0.02111, allocations: 301.4 kB / 436.5 MB, free: 7.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001626/0.02128, allocations: 441 kB / 436.9 MB, free: 7.234 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005407/0.02182, allocations: 0.6488 MB / 437.5 MB, free: 6.574 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.02184, allocations: 29.7 kB / 437.6 MB, free: 6.539 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.022, allocations: 324.5 kB / 437.9 MB, free: 6.219 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.02203, allocations: 35.66 kB / 437.9 MB, free: 6.184 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.969e-05/0.0221, allocations: 57.59 kB / 438 MB, free: 6.121 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.0222, allocations: 362.7 kB / 438.3 MB, free: 5.758 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.02234, allocations: 71.95 kB / 438.4 MB, free: 5.688 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002854/0.02262, allocations: 0.5374 MB / 438.9 MB, free: 5.012 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.02289, allocations: 158.4 kB / 439.1 MB, free: 4.848 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.02289, allocations: 4 kB / 439.1 MB, free: 4.844 MB / 410.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000351/0.02324, allocations: 241.2 kB / 439.3 MB, free: 4.602 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.02326, allocations: 8 kB / 439.3 MB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.02326, allocations: 0 / 439.3 MB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.02327, allocations: 0 / 439.3 MB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.02339, allocations: 47.92 kB / 439.4 MB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.0234, allocations: 7.938 kB / 439.4 MB, free: 4.539 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.02356, allocations: 51.84 kB / 439.4 MB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.02357, allocations: 4 kB / 439.4 MB, free: 4.484 MB / 410.7 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.0001615/0.02373, allocations: 181.8 kB / 439.6 MB, free: 4.297 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.02396, allocations: 63.58 kB / 439.7 MB, free: 4.234 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000335/0.0243, allocations: 194.9 kB / 439.9 MB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.0243, allocations: 3.938 kB / 439.9 MB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.02431, allocations: 0 / 439.9 MB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.02431, allocations: 3.938 kB / 439.9 MB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.02472, allocations: 404.5 kB / 440.3 MB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.02472, allocations: 0 / 440.3 MB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.02483, allocations: 39.95 kB / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.02483, allocations: 0 / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.02484, allocations: 4 kB / 440.3 MB, free: 3.543 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.02485, allocations: 4 kB / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.02485, allocations: 0 / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004236/0.02527, allocations: 410.1 kB / 440.7 MB, free: 3.121 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.02543, allocations: 89.48 kB / 440.8 MB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.02547, allocations: 11.98 kB / 440.8 MB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.02565, allocations: 44.19 kB / 440.9 MB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/0.02571, allocations: 15.92 kB / 440.9 MB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.02571, allocations: 0 / 440.9 MB, free: 2.961 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003893/0.0261, allocations: 467 kB / 441.3 MB, free: 2.512 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.0261, allocations: 0 / 441.3 MB, free: 2.512 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003055/0.02641, allocations: 107.6 kB / 441.4 MB, free: 2.406 MB / 410.7 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.001165/0.02757, allocations: 1.211 MB / 442.7 MB, free: 1.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003636/0.02794, allocations: 167.8 kB / 442.8 MB, free: 1.156 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.02794, allocations: 0 / 442.8 MB, free: 1.156 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.02808, allocations: 83.86 kB / 442.9 MB, free: 1.074 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005561/0.02864, allocations: 148.8 kB / 443 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.153/0.1817, allocations: 3.688 MB / 446.7 MB, free: 62.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.1819, allocations: 291.1 kB / 447 MB, free: 62.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001927/0.182, allocations: 63.84 kB / 447.1 MB, free: 62.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.1822, allocations: 204.4 kB / 447.3 MB, free: 62.63 MB / 410.7 MB Notification: Performance of SimCode: time 2.284e-06/0.1822, allocations: 1.312 kB / 447.3 MB, free: 62.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.2101, allocations: 11.92 MB / 459.2 MB, free: 60.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.997/7.207, allocations: 0 / 459.2 MB, free: 60.59 MB / 410.7 MB " [Timeout remaining time 653] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.08650534413755] Failed to read output from testmodel.py, exit status != 0: 7.3097735773772 7.3172505039999995 7.299328521 Calling exit ...