Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.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.OneSourceTwoLinesWithFaultOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad") translateModel(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 114.2 kB / 17.13 MB, free: 5.965 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.001745/0.001745, allocations: 199 kB / 18.06 MB, free: 5.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.31/2.31, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1007/0.1007, allocations: 8.103 MB / 300 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 67.89 kB / 415.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.177, allocations: 51.51 MB / 466.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad): time 0.00629/0.1833, allocations: 2.45 MB / 469.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004533/0.1879, allocations: 1.722 MB / 470.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003398/0.1883, allocations: 4 kB / 470.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007945/0.1891, allocations: 155.1 kB / 471 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009869/0.1902, allocations: 218.6 kB / 471.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003451/0.1937, allocations: 1.027 MB / 472.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.1952, allocations: 473.9 kB / 472.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.1958, allocations: 176.1 kB / 472.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004094/0.1962, allocations: 191.3 kB / 473.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006086/0.1968, allocations: 251 kB / 473.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.197, allocations: 44 kB / 473.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00112/0.1981, allocations: 271.7 kB / 473.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.1983, allocations: 91.62 kB / 473.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.1987, allocations: 230.9 kB / 473.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00137/0.2001, allocations: 0.6465 MB / 474.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.2001, allocations: 3.938 kB / 474.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2001, allocations: 0 / 474.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2001, allocations: 0 / 474.6 MB, free: 10.23 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006663/0.2068, allocations: 1.175 MB / 475.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.2069, allocations: 12.03 kB / 475.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004893/0.2074, allocations: 64.42 kB / 475.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008082/0.2082, allocations: 359.4 kB / 476.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/0.2083, allocations: 25.03 kB / 476.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.2084, allocations: 32.38 kB / 476.2 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.2098, allocations: 458.5 kB / 476.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2098, allocations: 192 / 476.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.966e-05/0.2099, allocations: 19.94 kB / 476.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.2099, allocations: 8 kB / 476.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.2112, allocations: 450.4 kB / 477.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004324/0.2155, allocations: 1.987 MB / 479.1 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.2175, allocations: 0.6935 MB / 479.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007556/0.2183, allocations: 297.2 kB / 480.1 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.2184, allocations: 19.97 kB / 480.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001218/0.2197, allocations: 468.5 kB / 480.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.699e-06/0.2197, allocations: 0 / 480.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.01003/0.2297, allocations: 1.795 MB / 482.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.23, allocations: 200.3 kB / 482.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006964/0.2307, allocations: 302.9 kB / 482.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.2308, allocations: 45.7 kB / 482.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.231, allocations: 164.8 kB / 483.1 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002513/0.2313, allocations: 165.6 kB / 483.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/0.2317, allocations: 106.2 kB / 483.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002118/0.2319, allocations: 350.7 kB / 483.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007736/0.2327, allocations: 273.1 kB / 484 MB, free: 340 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008701/0.2336, allocations: 347.8 kB / 484.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/0.2466, allocations: 2.07 MB / 486.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.2467, allocations: 0 / 486.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004911/0.2516, allocations: 1.188 MB / 487.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.123e-05/0.2517, allocations: 33.69 kB / 487.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.2517, allocations: 7.938 kB / 487.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003991/0.2557, allocations: 0.5159 MB / 488.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.2564, allocations: 83.83 kB / 488.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.2671, allocations: 3.962 MB / 492.2 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008809/0.2681, allocations: 47.47 kB / 492.2 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.2682, allocations: 27.98 kB / 492.2 MB, free: 7.84 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.line2.myFault.fault,line2.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im,line2.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0005718/0.2688, allocations: 220.1 kB / 492.4 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.269, allocations: 39.53 kB / 492.5 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004689/0.2737, allocations: 1.14 MB / 493.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.2737, allocations: 4 kB / 493.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2737, allocations: 0 / 493.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.2738, allocations: 3.984 kB / 493.6 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005897/0.2797, allocations: 1.83 MB / 495.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.2797, allocations: 0 / 495.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/0.28, allocations: 51.92 kB / 495.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003408/0.2835, allocations: 0.5065 MB / 496 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.2836, allocations: 12 kB / 496 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00935/0.293, allocations: 3.91 MB / 499.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.293, allocations: 0 / 499.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004221/0.2972, allocations: 1.188 MB / 0.4894 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.2976, allocations: 128.5 kB / 0.4895 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.2977, allocations: 16 kB / 0.4895 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005283/0.2982, allocations: 23.92 kB / 0.4895 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.2985, allocations: 44.38 kB / 0.4896 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.132e-05/0.2986, allocations: 16 kB / 0.4896 GB, free: 14.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004257/0.299, allocations: 217.9 kB / 0.4898 GB, free: 14.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.299, allocations: 0 / 0.4898 GB, free: 14.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001171/0.3002, allocations: 187.8 kB / 0.49 GB, free: 14.02 MB / 382.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,line2.myFault.Y.re,line2.myFault.Y.im,line2.myFault.fault) * Number of discrete states: 7 ($whenCondition4,line2.myFault.Y.im,line2.myFault.Y.re,$whenCondition3,$whenCondition2,line2.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {(3,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004016/0.3006, allocations: 141.6 kB / 0.4901 GB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003076/0.3037, allocations: 0.9886 MB / 0.4911 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.3037, allocations: 4 kB / 0.4911 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001925/0.3057, allocations: 0.6919 MB / 0.4918 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007965/0.3065, allocations: 43.62 kB / 0.4918 GB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.3088, allocations: 0.809 MB / 0.4926 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005695/0.3094, allocations: 0.8094 MB / 0.4934 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.3096, allocations: 35.42 kB / 0.4934 GB, free: 10.4 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3096, allocations: 0 / 0.4934 GB, free: 10.4 MB / 382.1 MB Notification: Performance of Templates: time 0.01754/0.3271, allocations: 7.796 MB / 0.501 GB, free: 2.605 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)