Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.001261/0.001261, allocations: 117 kB / 17.17 MB, free: 5.719 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.001348/0.001348, allocations: 196.5 kB / 20.12 MB, free: 2.809 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.48/1.48, allocations: 225.6 MB / 248.5 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0843/0.0843, allocations: 8.239 MB / 311.6 MB, free: 2.047 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 67.89 kB / 434 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2528, allocations: 54.36 MB / 488.3 MB, free: 27.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005127/0.2579, allocations: 4.633 MB / 493 MB, free: 23.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.2604, allocations: 1.764 MB / 494.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003217/0.2607, allocations: 11 kB / 494.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008663/0.2616, allocations: 0.4939 MB / 495.2 MB, free: 22.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006101/0.2622, allocations: 395.2 kB / 495.6 MB, free: 21.86 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.2637, allocations: 1.095 MB / 496.7 MB, free: 21.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007413/0.2645, allocations: 0.8258 MB / 497.5 MB, free: 20.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003254/0.2648, allocations: 236.5 kB / 497.8 MB, free: 20.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002962/0.2651, allocations: 381.4 kB / 498.1 MB, free: 20.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005858/0.2657, allocations: 0.602 MB / 498.7 MB, free: 19.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2658, allocations: 80.5 kB / 498.8 MB, free: 19.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005262/0.2663, allocations: 305.3 kB / 499.1 MB, free: 19.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.2666, allocations: 425.5 kB / 499.5 MB, free: 19.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004295/0.267, allocations: 0.6004 MB / 0.4884 GB, free: 18.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.2685, allocations: 1.663 MB / 0.49 GB, free: 17.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2685, allocations: 0 / 0.49 GB, free: 17.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2685, allocations: 0 / 0.49 GB, free: 17.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.2686, allocations: 0.75 kB / 0.49 GB, free: 17.83 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.004019/0.2726, allocations: 1.958 MB / 0.4919 GB, free: 16.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.2726, allocations: 14.02 kB / 0.492 GB, free: 16.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.2727, allocations: 108.5 kB / 0.4921 GB, free: 16.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002277/0.273, allocations: 154.9 kB / 0.4922 GB, free: 16.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.2742, allocations: 0.9754 MB / 0.4932 GB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000128/0.2743, allocations: 221.8 kB / 0.4934 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-05/0.2744, allocations: 60.94 kB / 0.4934 GB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.2756, allocations: 0.8348 MB / 0.4942 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.2756, allocations: 0 / 0.4942 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.381e-05/0.2757, allocations: 26.28 kB / 0.4943 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.2757, allocations: 18.84 kB / 0.4943 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.2767, allocations: 0.6738 MB / 0.4949 GB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004291/0.281, allocations: 3.552 MB / 0.4984 GB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/0.2828, allocations: 1.349 MB / 0.4997 GB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006982/0.2835, allocations: 450.8 kB / 0.5002 GB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.2836, allocations: 99.48 kB / 0.5003 GB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008726/0.2845, allocations: 0.5465 MB / 0.5008 GB, free: 9.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.194e-06/0.2845, allocations: 7.938 kB / 0.5008 GB, free: 9.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.007235/0.2917, allocations: 2.514 MB / 0.5033 GB, free: 8.574 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.2918, allocations: 280.3 kB / 0.5035 GB, free: 8.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/0.2938, allocations: 1.785 MB / 0.5053 GB, free: 6.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.533e-05/0.2939, allocations: 41.7 kB / 0.5053 GB, free: 6.754 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/0.2942, allocations: 494.1 kB / 0.5058 GB, free: 6.266 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.2943, allocations: 305.3 kB / 0.5061 GB, free: 5.965 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.2945, allocations: 146.6 kB / 0.5062 GB, free: 5.816 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.126e-05/0.2946, allocations: 341.9 kB / 0.5065 GB, free: 5.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000513/0.2951, allocations: 361.8 kB / 0.5069 GB, free: 5.125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005748/0.2956, allocations: 0.4911 MB / 0.5074 GB, free: 4.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004999/0.3006, allocations: 1.952 MB / 0.5093 GB, free: 2.621 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3006, allocations: 0 / 0.5093 GB, free: 2.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002799/0.3034, allocations: 1.396 MB / 0.5106 GB, free: 1.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3035, allocations: 4 kB / 0.5106 GB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3035, allocations: 7.984 kB / 0.5106 GB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.305, allocations: 0.5488 MB / 0.5112 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003669/0.3053, allocations: 111.8 kB / 0.5113 GB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.3068, allocations: 1.19 MB / 0.5124 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007681/0.3076, allocations: 83.48 kB / 0.5125 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.275e-05/0.3077, allocations: 31.98 kB / 0.5126 GB, free: 15.21 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) \"Charge as current integration\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 (delay.firstTrigger,$PRE.delay.firstTrigger,$whenCondition2,delay.sampleTrigger,$whenCondition1,$PRE.delay.y,delay.y,o.y,n1.y,n2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000864/0.3085, allocations: 449 kB / 0.513 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.3088, allocations: 127.2 kB / 0.5131 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.3122, allocations: 1.467 MB / 0.5145 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.3122, allocations: 8 kB / 0.5145 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.3122, allocations: 4 kB / 0.5145 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.3122, allocations: 3.984 kB / 0.5146 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005861/0.3181, allocations: 3.126 MB / 0.5176 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3181, allocations: 0 / 0.5176 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.3185, allocations: 107.8 kB / 0.5177 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/0.3201, allocations: 0.5238 MB / 0.5182 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.354e-05/0.3201, allocations: 19.98 kB / 0.5182 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001624/0.3218, allocations: 1.163 MB / 0.5194 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3218, allocations: 3.938 kB / 0.5194 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004163/0.3259, allocations: 1.975 MB / 0.5213 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006924/0.3266, allocations: 291.9 kB / 0.5216 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/0.3269, allocations: 16 kB / 0.5216 GB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/0.3275, allocations: 56.23 kB / 0.5217 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.3277, allocations: 72.89 kB / 0.5217 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/0.3277, allocations: 24 kB / 0.5217 GB, free: 5.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00215/0.3299, allocations: 1.293 MB / 0.523 GB, free: 4.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3299, allocations: 0 / 0.523 GB, free: 4.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008882/0.3308, allocations: 235.8 kB / 0.5232 GB, free: 4.109 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005358/0.3361, allocations: 2.716 MB / 0.5259 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002824/0.339, allocations: 1.05 MB / 0.5269 GB, free: 396 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.339, allocations: 4 kB / 0.5269 GB, free: 392 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.3408, allocations: 0.6424 MB / 0.5275 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.3419, allocations: 116.4 kB / 0.5277 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02397/0.3659, allocations: 12.91 MB / 0.5403 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.3669, allocations: 1.177 MB / 0.5414 GB, free: 1.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004729/0.3674, allocations: 167.2 kB / 0.5416 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/0.368, allocations: 431.2 kB / 0.542 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of SimCode: time 1.533e-06/0.368, allocations: 0 / 0.542 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06375/0.4318, allocations: 27.27 MB / 0.5686 GB, free: 5.617 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.45, allocations: 7.688 kB / 0.5686 GB, free: 5.609 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_MixingOneSourceOneBatteryOneDieselOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.211387707386166] Failed to read output from testmodel.py, exit status != 0: 13.605985417962074 13.618634427 13.347427553 Calling exit ...