Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") translateModel(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 104.5 kB / 16.98 MB, free: 6.137 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.001825/0.001825, allocations: 191.4 kB / 17.91 MB, free: 5.234 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.462/1.462, allocations: 222.9 MB / 241.6 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04875/0.04875, allocations: 8.11 MB / 299.9 MB, free: 6.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 68.09 kB / 362.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2078, allocations: 51.51 MB / 413.9 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.002358/0.2102, allocations: 1.573 MB / 415.5 MB, free: 24.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.2118, allocations: 1.551 MB / 417 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.19e-05/0.2119, allocations: 4 kB / 417 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.2123, allocations: 127.3 kB / 417.2 MB, free: 22.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.2126, allocations: 119.2 kB / 417.3 MB, free: 22.21 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.2139, allocations: 0.8985 MB / 418.2 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002611/0.2142, allocations: 254.8 kB / 418.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.2143, allocations: 81.84 kB / 418.5 MB, free: 20.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.397e-05/0.2144, allocations: 107.6 kB / 418.6 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2146, allocations: 131.4 kB / 418.7 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.2146, allocations: 20 kB / 418.8 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003133/0.2149, allocations: 207.8 kB / 419 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.911e-05/0.215, allocations: 51.77 kB / 419 MB, free: 20.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.559e-05/0.2151, allocations: 111.5 kB / 419.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.2155, allocations: 396.8 kB / 419.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2155, allocations: 0 / 419.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.2155, allocations: 0 / 419.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2155, allocations: 4 kB / 419.5 MB, free: 19.96 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002244/0.2178, allocations: 0.8147 MB / 420.3 MB, free: 19.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.2178, allocations: 11.89 kB / 420.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.314e-05/0.2179, allocations: 24.66 kB / 420.4 MB, free: 19.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.2181, allocations: 260.7 kB / 420.6 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.2182, allocations: 16.38 kB / 420.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.2182, allocations: 24.36 kB / 420.7 MB, free: 18.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000357/0.2186, allocations: 261.7 kB / 420.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2186, allocations: 192 / 420.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.2186, allocations: 15.88 kB / 420.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.2186, allocations: 7.938 kB / 420.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.219, allocations: 247.9 kB / 421.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.2201, allocations: 1.144 MB / 422.3 MB, free: 16.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.2205, allocations: 300.8 kB / 422.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.2207, allocations: 165.3 kB / 422.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-05/0.2208, allocations: 20.2 kB / 422.8 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003582/0.2211, allocations: 215.5 kB / 423 MB, free: 16.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.713e-06/0.2211, allocations: 7.875 kB / 423 MB, free: 16.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002625/0.2238, allocations: 0.921 MB / 423.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.2238, allocations: 55.41 kB / 424 MB, free: 15.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.2239, allocations: 187 kB / 424.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.224, allocations: 33.7 kB / 424.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.286e-05/0.224, allocations: 124.9 kB / 424.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.288e-05/0.2241, allocations: 98.55 kB / 424.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.383e-05/0.2242, allocations: 65.69 kB / 424.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.834e-05/0.2242, allocations: 326.8 kB / 424.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.2244, allocations: 148 kB / 425 MB, free: 14.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.2246, allocations: 191.1 kB / 425.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.2251, allocations: 358.5 kB / 425.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2251, allocations: 4 kB / 425.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001463/0.2265, allocations: 0.6458 MB / 426.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2266, allocations: 4 kB / 426.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2266, allocations: 0 / 426.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/0.2281, allocations: 352.5 kB / 426.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.2283, allocations: 47.92 kB / 426.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003201/0.2315, allocations: 2.631 MB / 429.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.2318, allocations: 27.75 kB / 429.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.2318, allocations: 16 kB / 429.2 MB, free: 9.754 MB / 302.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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 {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.2319, allocations: 137.8 kB / 429.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.389e-05/0.232, allocations: 23.75 kB / 429.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.2335, allocations: 0.6603 MB / 430 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2335, allocations: 11.94 kB / 430 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.2335, allocations: 0 / 430 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2335, allocations: 0 / 430 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.2338, allocations: 385.2 kB / 430.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2338, allocations: 7.922 kB / 430.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.2339, allocations: 43.92 kB / 430.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.2354, allocations: 344.4 kB / 430.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.2354, allocations: 4 kB / 430.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003024/0.2384, allocations: 2.621 MB / 433.4 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2384, allocations: 4 kB / 433.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.2399, allocations: 0.6308 MB / 434.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.46e-05/0.2399, allocations: 104.7 kB / 434.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.24, allocations: 12 kB / 434.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.2401, allocations: 11.94 kB / 434.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-05/0.2402, allocations: 35.89 kB / 434.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.2403, allocations: 12 kB / 434.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.642e-05/0.2404, allocations: 139.7 kB / 434.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2404, allocations: 0 / 434.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.2408, allocations: 88 kB / 434.5 MB, free: 4.262 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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 {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001766/0.241, allocations: 119.3 kB / 434.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.2422, allocations: 0.631 MB / 435.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2423, allocations: 0 / 435.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008743/0.2431, allocations: 442.4 kB / 435.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.2434, allocations: 35.94 kB / 435.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007737/0.2442, allocations: 0.5334 MB / 436.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.2444, allocations: 0.7453 MB / 436.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.642e-05/0.2444, allocations: 27.44 kB / 437 MB, free: 1.648 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2444, allocations: 4 kB / 437 MB, free: 1.645 MB / 302.1 MB Notification: Performance of Templates: time 0.006491/0.2509, allocations: 4.74 MB / 441.7 MB, free: 12.91 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)