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.001313/0.001313, allocations: 109.9 kB / 16.45 MB, free: 6.035 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.001355/0.001355, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.386/1.386, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.1728/0.1728, allocations: 31.56 MB / 334.2 MB, free: 10.65 MB / 270.1 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.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: "" <> 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 0.001965/0.001965, allocations: 67.89 kB / 467.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3165, allocations: 59.49 MB / 0.5143 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LookupFunctions): time 0.00675/0.3233, allocations: 7.023 MB / 0.5211 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003726/0.327, allocations: 2.178 MB / 0.5233 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.3282, allocations: 21.84 kB / 0.5233 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005744/0.3287, allocations: 169.2 kB / 0.5235 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005958/0.3293, allocations: 145.8 kB / 0.5236 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008717/0.3302, allocations: 333.8 kB / 0.5239 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007877/0.331, allocations: 0.725 MB / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.3314, allocations: 252.8 kB / 0.5249 GB, free: 484 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.3317, allocations: 234.9 kB / 0.5251 GB, free: 356 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.3319, allocations: 249.8 kB / 0.5253 GB, free: 204 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.342e-05/0.332, allocations: 44.81 kB / 0.5254 GB, free: 204 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.3322, allocations: 96.95 kB / 0.5255 GB, free: 180 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.3324, allocations: 147.6 kB / 0.5256 GB, free: 92 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002531/0.3326, allocations: 291.1 kB / 0.5259 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009137/0.3335, allocations: 0.6372 MB / 0.5265 GB, free: 15.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3335, allocations: 0.7031 kB / 0.5265 GB, free: 15.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3335, allocations: 9.188 kB / 0.5265 GB, free: 15.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3335, allocations: 0 / 0.5265 GB, free: 15.55 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.001731/0.3353, allocations: 1.017 MB / 0.5275 GB, free: 14.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3353, allocations: 12.69 kB / 0.5275 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.962e-05/0.3354, allocations: 81.52 kB / 0.5276 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003004/0.3357, allocations: 98.09 kB / 0.5277 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008737/0.3366, allocations: 0.4984 MB / 0.5282 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.3366, allocations: 28.47 kB / 0.5282 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.3367, allocations: 35.62 kB / 0.5282 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008349/0.3375, allocations: 465.5 kB / 0.5287 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3375, allocations: 0.75 kB / 0.5287 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.3376, allocations: 24.47 kB / 0.5287 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.3376, allocations: 9.094 kB / 0.5287 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000746/0.3383, allocations: 258.9 kB / 0.529 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.3404, allocations: 1.125 MB / 0.5301 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007279/0.3411, allocations: 173.2 kB / 0.5302 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.3413, allocations: 74.05 kB / 0.5303 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.3414, allocations: 2.547 kB / 0.5303 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.3414, allocations: 42.55 kB / 0.5303 GB, free: 13.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.3414, allocations: 0 / 0.5303 GB, free: 13.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009387/0.3424, allocations: 295.6 kB / 0.5306 GB, free: 12.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002455/0.3426, allocations: 452.9 kB / 0.531 GB, free: 12.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008319/0.3434, allocations: 0.6395 MB / 0.5317 GB, free: 12.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.3435, allocations: 28.2 kB / 0.5317 GB, free: 12.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.3437, allocations: 316.5 kB / 0.532 GB, free: 11.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.749e-05/0.3438, allocations: 43 kB / 0.532 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.3439, allocations: 51.34 kB / 0.5321 GB, free: 11.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3441, allocations: 357 kB / 0.5324 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.3444, allocations: 75.47 kB / 0.5325 GB, free: 11.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.3448, allocations: 187.2 kB / 0.5327 GB, free: 11.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.3453, allocations: 160.2 kB / 0.5328 GB, free: 11.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3453, allocations: 1.438 kB / 0.5328 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006779/0.3459, allocations: 250.5 kB / 0.5331 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.346, allocations: 9.984 kB / 0.5331 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.346, allocations: 1.094 kB / 0.5331 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.346, allocations: 5.094 kB / 0.5331 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.3462, allocations: 45.08 kB / 0.5331 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.3462, allocations: 3.938 kB / 0.5331 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.3466, allocations: 46.12 kB / 0.5332 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.3466, allocations: 2.984 kB / 0.5332 GB, free: 11.07 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.0002395/0.3469, allocations: 188.6 kB / 0.5334 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.347, allocations: 60.09 kB / 0.5334 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005193/0.3475, allocations: 185.5 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3475, allocations: 2.922 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3475, allocations: 0 / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3475, allocations: 7.516 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.3482, allocations: 476.4 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3482, allocations: 0 / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.3484, allocations: 39.42 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3484, allocations: 1.844 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.3484, allocations: 11.52 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3484, allocations: 1.125 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3484, allocations: 0 / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006833/0.3491, allocations: 402.5 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.3494, allocations: 175.8 kB / 0.5347 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-05/0.3495, allocations: 12.73 kB / 0.5347 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003628/0.3498, allocations: 37.91 kB / 0.5347 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.3499, allocations: 11.33 kB / 0.5347 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.3499, allocations: 5.766 kB / 0.5347 GB, free: 10.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005858/0.3505, allocations: 457.2 kB / 0.5352 GB, free: 9.867 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3505, allocations: 0 / 0.5352 GB, free: 9.867 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004549/0.3509, allocations: 109.4 kB / 0.5353 GB, free: 9.836 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.002266/0.3532, allocations: 1.201 MB / 0.5364 GB, free: 8.941 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.3538, allocations: 167.9 kB / 0.5366 GB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3538, allocations: 1.344 kB / 0.5366 GB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.3541, allocations: 81.47 kB / 0.5367 GB, free: 8.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007988/0.3549, allocations: 137.9 kB / 0.5368 GB, free: 8.82 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.005807/0.3607, allocations: 3.681 MB / 0.5404 GB, free: 6.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006418/0.3613, allocations: 0.8845 MB / 0.5413 GB, free: 5.961 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003069/0.3616, allocations: 61.81 kB / 0.5413 GB, free: 5.945 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002883/0.3619, allocations: 198.4 kB / 0.5415 GB, free: 5.797 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3619, allocations: 0 / 0.5415 GB, free: 5.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2841/0.646, allocations: 10.18 MB / 0.5515 GB, free: 1.043 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.922/9.568, allocations: 9.094 kB / 0.5515 GB, free: 1.039 MB / 398.1 MB " [Timeout remaining time 649] (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: 14.139673579949886] Failed to read output from testmodel.py, exit status != 0: 10.90210731793195 10.916762566 10.580130338 Calling exit ...