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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) 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: translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 106.6 kB / 17.13 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 194.1 kB / 18.07 MB, free: 5.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.8 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04408/0.04408, allocations: 8.094 MB / 300 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001208, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08191/0.08313, allocations: 51.51 MB / 466.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005553/0.08872, allocations: 4.604 MB / 471.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.09112, allocations: 1.756 MB / 473 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001956/0.09133, allocations: 15.94 kB / 473.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008418/0.09219, allocations: 0.4941 MB / 473.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006109/0.09281, allocations: 393.9 kB / 473.9 MB, free: 10.87 MB / 350.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.001851/0.09467, allocations: 1.078 MB / 475 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008219/0.09551, allocations: 0.8255 MB / 475.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004351/0.09595, allocations: 329.5 kB / 476.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003268/0.09629, allocations: 382.7 kB / 476.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006287/0.09693, allocations: 0.5802 MB / 477.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.09705, allocations: 80 kB / 477.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004783/0.09754, allocations: 303.8 kB / 477.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003854/0.09793, allocations: 426.8 kB / 477.9 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004957/0.09844, allocations: 0.6098 MB / 478.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001488/0.09994, allocations: 1.647 MB / 480.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.09995, allocations: 0 / 480.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09996, allocations: 0 / 480.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.09999, allocations: 4 kB / 480.2 MB, free: 4.609 MB / 350.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.004409/0.1044, allocations: 1.91 MB / 482.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1045, allocations: 11.89 kB / 482.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.1047, allocations: 147.2 kB / 482.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.1061, allocations: 0.966 MB / 483.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.1063, allocations: 220.1 kB / 483.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.883e-05/0.1064, allocations: 60.38 kB / 483.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1078, allocations: 0.8318 MB / 484.3 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1078, allocations: 0 / 484.3 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.95e-05/0.1079, allocations: 28 kB / 484.3 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.1079, allocations: 16 kB / 484.3 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.1091, allocations: 0.6768 MB / 485 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.1141, allocations: 3.557 MB / 488.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002112/0.1162, allocations: 1.42 MB / 490 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008344/0.117, allocations: 0.5118 MB / 490.5 MB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.1172, allocations: 98.09 kB / 490.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009663/0.1182, allocations: 0.5437 MB / 491.2 MB, free: 9.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.745e-06/0.1182, allocations: 0 / 491.2 MB, free: 9.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.008017/0.1262, allocations: 2.534 MB / 493.7 MB, free: 6.562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.1264, allocations: 266 kB / 493.9 MB, free: 6.238 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.1285, allocations: 1.787 MB / 495.7 MB, free: 4.434 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.219e-05/0.1286, allocations: 41.7 kB / 495.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.129, allocations: 497.6 kB / 496.3 MB, free: 3.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.1292, allocations: 287.8 kB / 496.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.1294, allocations: 146.6 kB / 496.7 MB, free: 3.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1296, allocations: 338 kB / 497 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006582/0.1302, allocations: 353.8 kB / 497.4 MB, free: 2.781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007538/0.131, allocations: 0.491 MB / 497.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006194/0.1372, allocations: 1.96 MB / 499.8 MB, free: 276 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.1372, allocations: 3.938 kB / 499.8 MB, free: 272 kB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003342/0.1406, allocations: 1.411 MB / 0.4895 GB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1406, allocations: 11.94 kB / 0.4895 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1406, allocations: 0 / 0.4895 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001835/0.1425, allocations: 0.5488 MB / 0.49 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.1429, allocations: 111.9 kB / 0.4901 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.1446, allocations: 1.181 MB / 0.4913 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005447/0.1451, allocations: 83.28 kB / 0.4914 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.1452, allocations: 31.92 kB / 0.4914 GB, free: 12.85 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.0006113/0.1458, allocations: 456.2 kB / 0.4918 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.146, allocations: 122.5 kB / 0.4919 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003365/0.1494, allocations: 1.487 MB / 0.4934 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.1494, allocations: 3.984 kB / 0.4934 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1494, allocations: 0 / 0.4934 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004251/0.1498, allocations: 275.3 kB / 0.4937 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.15, allocations: 16 kB / 0.4937 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000509/0.1505, allocations: 59.89 kB / 0.4937 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.1507, allocations: 112.8 kB / 0.4938 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002993/0.1537, allocations: 1.376 MB / 0.4952 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002324/0.1561, allocations: 1.576 MB / 0.4967 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006474/0.1567, allocations: 399.8 kB / 0.4971 GB, free: 6.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001487/0.1582, allocations: 1.285 MB / 0.4984 GB, free: 5.633 MB / 382.1 MB Notification: Performance of Backend: time 6.21e-07/0.1582, allocations: 0 / 0.4984 GB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003541/0.1618, allocations: 1.269 MB / 0.4996 GB, free: 4.488 MB / 382.1 MB Notification: Performance of SimCode: time 0.003195/0.165, allocations: 2.817 MB / 0.5024 GB, free: 1.621 MB / 382.1 MB Notification: Performance of Templates: time 0.2121/0.377, allocations: 17.86 MB / 0.5198 GB, free: 40.97 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile (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 & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1)