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.001663/0.001663, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 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.00159/0.00159, allocations: 215.5 kB / 22.25 MB, free: 5.113 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.474/1.474, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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.1809/0.1809, allocations: 31.55 MB / 344 MB, free: 3.957 MB / 270.1 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: BusinessSimulation 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.002059/0.002059, allocations: 63.89 kB / 480.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3198, allocations: 60.71 MB / 0.5288 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.007426/0.3272, allocations: 7.13 MB / 0.5358 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004359/0.3316, allocations: 2.378 MB / 0.5381 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.3326, allocations: 32.84 kB / 0.5382 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000521/0.3331, allocations: 167.6 kB / 0.5383 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.3337, allocations: 193.6 kB / 0.5385 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007863/0.3345, allocations: 366.4 kB / 0.5388 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000687/0.3352, allocations: 0.7284 MB / 0.5396 GB, free: 232 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003686/0.3356, allocations: 252.6 kB / 0.5398 GB, free: 56 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003267/0.3359, allocations: 247.5 kB / 0.54 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002989/0.3362, allocations: 252.2 kB / 0.5403 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.3363, allocations: 46.31 kB / 0.5403 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.3365, allocations: 89.55 kB / 0.5404 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.3366, allocations: 150.4 kB / 0.5406 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.3369, allocations: 289.6 kB / 0.5408 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008598/0.3378, allocations: 0.6492 MB / 0.5415 GB, free: 14.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3378, allocations: 4 kB / 0.5415 GB, free: 14.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3378, allocations: 0 / 0.5415 GB, free: 14.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3378, allocations: 1 kB / 0.5415 GB, free: 14.83 MB / 398.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.001564/0.3394, allocations: 0.9621 MB / 0.5424 GB, free: 14.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3394, allocations: 10.12 kB / 0.5424 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.407e-05/0.3395, allocations: 79 kB / 0.5425 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002864/0.3398, allocations: 103.8 kB / 0.5426 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008087/0.3406, allocations: 443 kB / 0.543 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.3406, allocations: 27.84 kB / 0.543 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.185e-05/0.3407, allocations: 35.75 kB / 0.5431 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008367/0.3415, allocations: 468.8 kB / 0.5435 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3415, allocations: 11.92 kB / 0.5435 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.3416, allocations: 21.44 kB / 0.5436 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3416, allocations: 8.25 kB / 0.5436 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006796/0.3423, allocations: 253.8 kB / 0.5438 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.3441, allocations: 1.08 MB / 0.5449 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007152/0.3448, allocations: 170.8 kB / 0.545 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002558/0.3451, allocations: 75.2 kB / 0.5451 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.3451, allocations: 6.109 kB / 0.5451 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.3452, allocations: 38 kB / 0.5451 GB, free: 11.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.3452, allocations: 0 / 0.5451 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009209/0.3461, allocations: 305.5 kB / 0.5454 GB, free: 11.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002665/0.3464, allocations: 445.2 kB / 0.5458 GB, free: 11.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008237/0.3472, allocations: 0.6464 MB / 0.5465 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.3472, allocations: 32.86 kB / 0.5465 GB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002766/0.3475, allocations: 319.4 kB / 0.5468 GB, free: 10.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.655e-05/0.3476, allocations: 43.7 kB / 0.5469 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.3477, allocations: 56.02 kB / 0.5469 GB, free: 10.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.3479, allocations: 359.2 kB / 0.5473 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.3481, allocations: 68.19 kB / 0.5473 GB, free: 10.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.3485, allocations: 195.9 kB / 0.5475 GB, free: 9.957 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005014/0.349, allocations: 160.9 kB / 0.5477 GB, free: 9.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.349, allocations: 0 / 0.5477 GB, free: 9.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006407/0.3496, allocations: 254.8 kB / 0.5479 GB, free: 9.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3497, allocations: 5.438 kB / 0.5479 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3497, allocations: 1.344 kB / 0.5479 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3497, allocations: 5.25 kB / 0.5479 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.3499, allocations: 35.03 kB / 0.5479 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3499, allocations: 10.55 kB / 0.548 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.3503, allocations: 47.28 kB / 0.548 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.3503, allocations: 6.938 kB / 0.548 GB, free: 9.672 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.0002293/0.3505, allocations: 177.6 kB / 0.5482 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.3507, allocations: 64.31 kB / 0.5482 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005193/0.3512, allocations: 189.6 kB / 0.5484 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3512, allocations: 2.656 kB / 0.5484 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3512, allocations: 8 kB / 0.5484 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.3512, allocations: 1.375 kB / 0.5484 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005939/0.3518, allocations: 449 kB / 0.5489 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3518, allocations: 1.406 kB / 0.5489 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.352, allocations: 37.95 kB / 0.5489 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.352, allocations: 1.094 kB / 0.5489 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.352, allocations: 5.156 kB / 0.5489 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.352, allocations: 1.062 kB / 0.5489 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.352, allocations: 1.125 kB / 0.5489 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006631/0.3527, allocations: 412.1 kB / 0.5493 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002357/0.3529, allocations: 93.56 kB / 0.5494 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.709e-05/0.353, allocations: 14.86 kB / 0.5494 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.3533, allocations: 46.14 kB / 0.5494 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/0.3534, allocations: 7.859 kB / 0.5495 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.3534, allocations: 2.469 kB / 0.5495 GB, free: 8.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005457/0.354, allocations: 467.2 kB / 0.5499 GB, free: 8.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.354, allocations: 0 / 0.5499 GB, free: 8.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.3544, allocations: 107.5 kB / 0.55 GB, free: 8.277 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.002183/0.3566, allocations: 1.206 MB / 0.5512 GB, free: 7.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006004/0.3572, allocations: 161.4 kB / 0.5513 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3572, allocations: 0.9688 kB / 0.5513 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.3574, allocations: 82.72 kB / 0.5514 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000786/0.3582, allocations: 144.3 kB / 0.5516 GB, free: 7.145 MB / 398.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/0.3638, allocations: 3.709 MB / 0.5552 GB, free: 4.637 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005698/0.3644, allocations: 0.8829 MB / 0.556 GB, free: 3.855 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002632/0.3647, allocations: 64.7 kB / 0.5561 GB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.365, allocations: 202.2 kB / 0.5563 GB, free: 3.652 MB / 398.1 MB Notification: Performance of SimCode: time 5.72e-07/0.365, allocations: 0 / 0.5563 GB, free: 3.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3148/0.6798, allocations: 10.43 MB / 0.5665 GB, free: 10.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.72, allocations: 3.938 kB / 0.5665 GB, free: 10.43 MB / 414.1 MB " [Timeout remaining time 646] (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: 17.474076988874003] Failed to read output from testmodel.py, exit status != 0: 14.090180829865858 14.108781716 13.767558634 Calling exit ...