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.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.0009874/0.0009874, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009091/0.0009091, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8683/0.8683, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.09727/0.09727, allocations: 24.12 MB / 283.3 MB, free: 5.504 MB / 266.7 MB " [Timeout remaining time 180] 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.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_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.LookupFunctions,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_LookupFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 420.1 MB, free: 5.508 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.77e-05/1.92e-05, allocations: 3.688 kB / 420.1 MB, free: 5.504 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.005219/0.005238, allocations: 6.445 MB / 426.5 MB, free: 1.16 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003207/0.008445, allocations: 2.362 MB / 428.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006084/0.009054, allocations: 28.84 kB / 428.9 MB, free: 15.47 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004109/0.009465, allocations: 167.3 kB / 429.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006096/0.01007, allocations: 194.2 kB / 429.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006586/0.01073, allocations: 341.9 kB / 429.6 MB, free: 15.04 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007441/0.01148, allocations: 0.7387 MB / 430.3 MB, free: 14.65 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003946/0.01187, allocations: 244.4 kB / 430.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003716/0.01224, allocations: 348.3 kB / 430.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.01242, allocations: 166.1 kB / 431.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.874e-05/0.01248, allocations: 45.16 kB / 431.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.01263, allocations: 88.94 kB / 431.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.01276, allocations: 150.2 kB / 431.3 MB, free: 14.18 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.01289, allocations: 172.7 kB / 431.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.01354, allocations: 0.6443 MB / 432.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.01355, allocations: 0.6562 kB / 432.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.01355, allocations: 1.5 kB / 432.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.01356, allocations: 0 / 432.2 MB, free: 13.78 MB / 346.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.001238/0.0148, allocations: 0.9347 MB / 433.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.01484, allocations: 9.625 kB / 433.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.733e-05/0.01491, allocations: 85.44 kB / 433.2 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.01512, allocations: 98.77 kB / 433.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005498/0.01567, allocations: 436.2 kB / 433.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.0157, allocations: 28.5 kB / 433.7 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/0.01573, allocations: 35.59 kB / 433.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006504/0.01638, allocations: 0.8171 MB / 434.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.01639, allocations: 4 kB / 434.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.01642, allocations: 17.03 kB / 434.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.01643, allocations: 8.906 kB / 434.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004223/0.01685, allocations: 257.5 kB / 434.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.01814, allocations: 0.9861 MB / 435.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.01859, allocations: 175.5 kB / 436 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.01873, allocations: 81.7 kB / 436.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.01875, allocations: 2.25 kB / 436.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.01877, allocations: 38.62 kB / 436.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.01878, allocations: 5.125 kB / 436.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005629/0.01934, allocations: 300.5 kB / 436.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.01949, allocations: 441.8 kB / 436.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006486/0.02014, allocations: 0.6481 MB / 437.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.02016, allocations: 28.92 kB / 437.6 MB, free: 9.977 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.02033, allocations: 327.8 kB / 437.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.02036, allocations: 40.05 kB / 437.9 MB, free: 9.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.02043, allocations: 50.03 kB / 438 MB, free: 9.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.02064, allocations: 358.7 kB / 438.3 MB, free: 9.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.0208, allocations: 72.73 kB / 438.4 MB, free: 9.234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.0211, allocations: 0.5362 MB / 438.9 MB, free: 8.617 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.02138, allocations: 166.1 kB / 439.1 MB, free: 8.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.02138, allocations: 0 / 439.1 MB, free: 8.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000405/0.02179, allocations: 246.5 kB / 439.3 MB, free: 8.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.0218, allocations: 8.812 kB / 439.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.02181, allocations: 1.25 kB / 439.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.02182, allocations: 1.188 kB / 439.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.02195, allocations: 44.92 kB / 439.4 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.02196, allocations: 5.344 kB / 439.4 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.02213, allocations: 47.5 kB / 439.4 MB, free: 8.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.02214, allocations: 2.906 kB / 439.4 MB, free: 8.336 MB / 346.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.0001572/0.0223, allocations: 181.7 kB / 439.6 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-05/0.02236, allocations: 65.06 kB / 439.7 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003095/0.02267, allocations: 194.4 kB / 439.9 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.02268, allocations: 5.328 kB / 439.9 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.02268, allocations: 0 / 439.9 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.02269, allocations: 9.109 kB / 439.9 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000415/0.0231, allocations: 398.1 kB / 440.3 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.0231, allocations: 9.25 kB / 440.3 MB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-05/0.0232, allocations: 38.61 kB / 440.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.0232, allocations: 0 / 440.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.02321, allocations: 2.688 kB / 440.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.02322, allocations: 0 / 440.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.02322, allocations: 9.281 kB / 440.3 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004011/0.02362, allocations: 407.9 kB / 440.7 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.02376, allocations: 94.41 kB / 440.8 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.02379, allocations: 11.34 kB / 440.8 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.02396, allocations: 33.58 kB / 440.9 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.02401, allocations: 15.42 kB / 440.9 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.016e-06/0.02401, allocations: 3.438 kB / 440.9 MB, free: 7.266 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005312/0.02455, allocations: 465.4 kB / 441.3 MB, free: 7.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02455, allocations: 0 / 441.3 MB, free: 7.012 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.02486, allocations: 111.2 kB / 441.4 MB, free: 6.977 MB / 346.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.001255/0.02612, allocations: 1.213 MB / 442.6 MB, free: 6.047 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003923/0.02651, allocations: 161.3 kB / 442.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.02651, allocations: 1.219 kB / 442.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.02666, allocations: 81.81 kB / 442.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/0.0272, allocations: 150 kB / 443 MB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004044/0.03124, allocations: 3.71 MB / 446.7 MB, free: 3.344 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.03149, allocations: 290 kB / 447 MB, free: 3.164 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001868/0.03168, allocations: 58.33 kB / 447.1 MB, free: 3.137 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.03186, allocations: 199.3 kB / 447.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03186, allocations: 4 kB / 447.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.05422, allocations: 11.91 MB / 459.2 MB, free: 7.875 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.271/7.326, allocations: 15.69 kB / 459.2 MB, free: 7.863 MB / 362.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_LookupFunctions_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_LookupFunctions.fmu > BusinessSimulation_BusinessSimulation.Examples.LookupFunctions.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.212506225332618] Failed to read output from testmodel.py, exit status != 0: 7.426841306500137 7.435313189 7.419692482 Calling exit ...