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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001461/0.001461, allocations: 105 kB / 16.45 MB, free: 6.391 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.001742/0.001742, allocations: 189 kB / 17.39 MB, free: 5.648 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04499/0.04499, allocations: 8.106 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 67.91 kB / 414.5 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07447/0.07551, allocations: 51.51 MB / 466 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.005282/0.08082, allocations: 4.62 MB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.08342, allocations: 1.756 MB / 472.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003737/0.08381, allocations: 12 kB / 472.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008974/0.08474, allocations: 0.4941 MB / 472.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007808/0.08553, allocations: 397.9 kB / 473.3 MB, free: 10.87 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001756/0.08729, allocations: 1.07 MB / 474.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009007/0.08821, allocations: 0.8333 MB / 475.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004022/0.08862, allocations: 329.5 kB / 475.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003719/0.089, allocations: 386.7 kB / 475.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006364/0.08964, allocations: 0.5724 MB / 476.4 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.08977, allocations: 80 kB / 476.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004667/0.09024, allocations: 311.8 kB / 476.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003012/0.09055, allocations: 430.7 kB / 477.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004956/0.09105, allocations: 0.602 MB / 477.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.09244, allocations: 1.651 MB / 479.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.09246, allocations: 0 / 479.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.09246, allocations: 0 / 479.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.746e-05/0.0925, allocations: 0 / 479.5 MB, free: 4.613 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.003859/0.09636, allocations: 1.906 MB / 481.4 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.0964, allocations: 8.031 kB / 481.4 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.09663, allocations: 151.2 kB / 481.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.09779, allocations: 0.9621 MB / 482.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.09794, allocations: 224.1 kB / 482.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.305e-05/0.09804, allocations: 60.38 kB / 482.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.09929, allocations: 0.8357 MB / 483.6 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.09931, allocations: 0 / 483.6 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/0.09938, allocations: 28 kB / 483.7 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.0994, allocations: 16 kB / 483.7 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.1004, allocations: 0.669 MB / 484.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00471/0.1052, allocations: 3.557 MB / 487.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.1071, allocations: 1.428 MB / 489.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007665/0.1079, allocations: 0.4971 MB / 489.8 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.1081, allocations: 106.1 kB / 489.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009166/0.109, allocations: 0.5515 MB / 490.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=89): time 2.675e-06/0.109, allocations: 0 / 490.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.007064/0.1161, allocations: 2.523 MB / 493 MB, free: 6.578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.1162, allocations: 274 kB / 493.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.1181, allocations: 1.787 MB / 495.1 MB, free: 4.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.187e-05/0.1182, allocations: 41.7 kB / 495.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.1185, allocations: 489.6 kB / 495.6 MB, free: 3.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.1187, allocations: 291.8 kB / 495.9 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.119, allocations: 146.6 kB / 496 MB, free: 3.473 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1191, allocations: 334 kB / 496.3 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005786/0.1197, allocations: 361.8 kB / 496.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006743/0.1203, allocations: 0.4949 MB / 497.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005289/0.1256, allocations: 1.948 MB / 499.1 MB, free: 292 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1257, allocations: 0 / 499.1 MB, free: 292 kB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002759/0.1284, allocations: 1.419 MB / 0.4888 GB, free: 14.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1284, allocations: 11.94 kB / 0.4888 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1285, allocations: 0 / 0.4888 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.13, allocations: 0.5488 MB / 0.4894 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.1304, allocations: 111.8 kB / 0.4895 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.1318, allocations: 1.178 MB / 0.4906 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004479/0.1323, allocations: 91.22 kB / 0.4907 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.1324, allocations: 27.98 kB / 0.4907 GB, free: 12.86 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.0004814/0.1329, allocations: 449.6 kB / 0.4912 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.133, allocations: 122.5 kB / 0.4913 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.136, allocations: 1.483 MB / 0.4927 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.136, allocations: 12 kB / 0.4927 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.136, allocations: 0 / 0.4927 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.136, allocations: 3.984 kB / 0.4927 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004642/0.1407, allocations: 3.138 MB / 0.4958 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1407, allocations: 11.88 kB / 0.4958 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/0.141, allocations: 99.88 kB / 0.4959 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.1426, allocations: 0.5279 MB / 0.4964 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/0.1426, allocations: 23.98 kB / 0.4964 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.144, allocations: 1.162 MB / 0.4976 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.144, allocations: 0 / 0.4976 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.1475, allocations: 1.997 MB / 0.4995 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.1478, allocations: 271.3 kB / 0.4998 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.1479, allocations: 24 kB / 0.4998 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004702/0.1484, allocations: 55.95 kB / 0.4999 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.1485, allocations: 72.89 kB / 0.4999 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-05/0.1486, allocations: 20 kB / 0.5 GB, free: 3.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001337/0.1499, allocations: 1.289 MB / 0.5012 GB, free: 1.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1499, allocations: 0 / 0.5012 GB, free: 1.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005618/0.1505, allocations: 243.7 kB / 0.5014 GB, free: 1.715 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.0005744/0.1511, allocations: 298.6 kB / 0.5017 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.1534, allocations: 1.105 MB / 0.5028 GB, free: 396 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1535, allocations: 0 / 0.5028 GB, free: 396 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1522/0.3056, allocations: 0.6773 MB / 0.5035 GB, free: 47.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008584/0.3065, allocations: 108.2 kB / 0.5036 GB, free: 47.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/0.3103, allocations: 2.482 MB / 0.506 GB, free: 46.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.3109, allocations: 1.174 MB / 0.5071 GB, free: 45.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000338/0.3113, allocations: 167.7 kB / 0.5073 GB, free: 45.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.3115, allocations: 73.61 kB / 0.5074 GB, free: 45.65 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3115, allocations: 1.75 kB / 0.5074 GB, free: 45.65 MB / 382.1 MB Notification: Performance of Templates: time 0.02145/0.3329, allocations: 15.5 MB / 0.5225 GB, free: 40.76 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)