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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 190.5 kB / 7.848 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 221.4 MB / 229.7 MB, free: 3.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009729/0.000973, allocations: 96.66 kB / 280.5 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04336/0.04336, allocations: 8.102 MB / 339.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.207/0.2504, allocations: 58.62 MB / 398 MB, free: 67.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07842/0.3288, allocations: 52.51 MB / 450.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.257/0.5859, allocations: 80.11 MB / 0.5182 GB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.5863, allocations: 59.59 kB / 0.5182 GB, free: 14.25 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:258:7-259:66:writable] Warning: connect(terminalA, terminalA) connects the same connector instance! The connect equation will be ignored. 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.03405/0.6203, allocations: 13.09 MB / 0.531 GB, free: 4.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.6204, allocations: 11.94 kB / 0.531 GB, free: 4.012 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.6206, allocations: 58.33 kB / 0.5311 GB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.6211, allocations: 353.7 kB / 0.5314 GB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.6211, allocations: 15.94 kB / 0.5314 GB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.6211, allocations: 16 kB / 0.5315 GB, free: 3.609 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006247/0.6218, allocations: 431 kB / 0.5319 GB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006051/0.6224, allocations: 409.3 kB / 0.5323 GB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.6224, allocations: 0 / 0.5323 GB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.6224, allocations: 0 / 0.5323 GB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.6225, allocations: 8 kB / 0.5323 GB, free: 3.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002548/0.625, allocations: 2.05 MB / 0.5343 GB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005712/0.6256, allocations: 445.3 kB / 0.5347 GB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003423/0.6259, allocations: 274.9 kB / 0.535 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001575/0.6261, allocations: 93.08 kB / 0.5351 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004694/0.6266, allocations: 430.6 kB / 0.5355 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 2.555e-06/0.6266, allocations: 0 / 0.5355 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002764/0.6294, allocations: 0.9746 MB / 0.5364 GB, free: 15.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.801e-05/0.6295, allocations: 196 kB / 0.5366 GB, free: 15.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.6298, allocations: 263.2 kB / 0.5369 GB, free: 15.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.6298, allocations: 29.52 kB / 0.5369 GB, free: 15.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/0.6299, allocations: 145.3 kB / 0.537 GB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.6301, allocations: 146.1 kB / 0.5372 GB, free: 15.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.6301, allocations: 0 / 0.5372 GB, free: 15.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.6302, allocations: 351.7 kB / 0.5375 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.6305, allocations: 227 kB / 0.5377 GB, free: 14.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.6309, allocations: 257.5 kB / 0.538 GB, free: 14.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007001/0.6316, allocations: 283.4 kB / 0.5382 GB, free: 14.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.6316, allocations: 0 / 0.5382 GB, free: 14.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002927/0.6345, allocations: 1.025 MB / 0.5392 GB, free: 13.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.6346, allocations: 11.94 kB / 0.5392 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.6346, allocations: 0 / 0.5392 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/0.6369, allocations: 484.6 kB / 0.5397 GB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/0.6372, allocations: 55.89 kB / 0.5398 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005085/0.6423, allocations: 3.323 MB / 0.543 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004404/0.6428, allocations: 27.75 kB / 0.543 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.6428, allocations: 19.92 kB / 0.543 GB, free: 10.7 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: line2.myFault.fault:DISCRETE(start = false fixed = false ) "true means the fault is active" type: Boolean line2.myFault.Y.im:DISCRETE(start = 0.0 fixed = false ) "Imaginary part of complex number" type: Real line2.myFault.Y.re:DISCRETE(start = 0.0 fixed = false ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.line2.myFault.fault,line2.myFault.fault,$PRE.line2.myFault.Y.re,line2.myFault.Y.re,$PRE.line2.myFault.Y.im,line2.myFault.Y.im) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.6431, allocations: 161.5 kB / 0.5432 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.003e-05/0.6432, allocations: 39.53 kB / 0.5432 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003009/0.6462, allocations: 1.091 MB / 0.5443 GB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.6463, allocations: 4 kB / 0.5443 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.6463, allocations: 0 / 0.5443 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.6463, allocations: 3.984 kB / 0.5443 GB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007187/0.647, allocations: 0.6148 MB / 0.5449 GB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.647, allocations: 0 / 0.5449 GB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.6472, allocations: 47.91 kB / 0.545 GB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00214/0.6494, allocations: 493.4 kB / 0.5454 GB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.361e-05/0.6494, allocations: 15.61 kB / 0.5454 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005074/0.6545, allocations: 3.312 MB / 0.5487 GB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.6545, allocations: 0 / 0.5487 GB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002953/0.6575, allocations: 1.047 MB / 0.5497 GB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003119/0.6606, allocations: 1.434 MB / 0.5511 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.6609, allocations: 120.6 kB / 0.5512 GB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.421e-05/0.661, allocations: 4 kB / 0.5512 GB, free: 2.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.6613, allocations: 23.98 kB / 0.5512 GB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.6614, allocations: 28.39 kB / 0.5513 GB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.744e-05/0.6615, allocations: 20 kB / 0.5513 GB, free: 2.844 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002242/0.6617, allocations: 211 kB / 0.5515 GB, free: 2.641 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001176/0.6629, allocations: 143.8 kB / 0.5516 GB, free: 2.5 MB / 362.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.000232/0.6631, allocations: 127.2 kB / 0.5517 GB, free: 2.363 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.6647, allocations: 0.7802 MB / 0.5525 GB, free: 1.566 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.6647, allocations: 0 / 0.5525 GB, free: 1.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.6659, allocations: 0.5754 MB / 0.5531 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.6661, allocations: 24.59 kB / 0.5531 GB, free: 0.9531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.6674, allocations: 0.5393 MB / 0.5536 GB, free: 396 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.6679, allocations: 0.847 MB / 0.5544 GB, free: 15.52 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.6679, allocations: 0 / 0.5544 GB, free: 15.52 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesWithFaultOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesWithFaultOneLoad.pipe 2>&1)