Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.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.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLigneWithFault,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault",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.0009957/0.0009957, allocations: 185.6 kB / 7.846 MB, free: 2.512 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.171/1.171, allocations: 221.4 MB / 229.7 MB, free: 3.246 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.0009358/0.0009358, allocations: 95.52 kB / 280.5 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03618/0.03618, allocations: 8.111 MB / 339.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1843/0.2205, allocations: 58.61 MB / 398 MB, free: 67.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.3076, allocations: 52.52 MB / 450.5 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2699/0.5776, allocations: 79.28 MB / 0.5174 GB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/0.5779, allocations: 58.47 kB / 0.5174 GB, free: 14.5 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.026/0.6039, allocations: 9.977 MB / 0.5272 GB, free: 6.707 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.604, allocations: 12.81 kB / 0.5272 GB, free: 6.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/0.6042, allocations: 43.42 kB / 0.5272 GB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.6046, allocations: 311.5 kB / 0.5275 GB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.6046, allocations: 8 kB / 0.5275 GB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.6047, allocations: 12 kB / 0.5275 GB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000461/0.6051, allocations: 309.8 kB / 0.5278 GB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.6056, allocations: 300.5 kB / 0.5281 GB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.6056, allocations: 3.984 kB / 0.5281 GB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.6057, allocations: 7.938 kB / 0.5281 GB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.6057, allocations: 12 kB / 0.5281 GB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.6078, allocations: 1.536 MB / 0.5296 GB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.6082, allocations: 286.5 kB / 0.5299 GB, free: 4.453 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.6085, allocations: 188.2 kB / 0.5301 GB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.6086, allocations: 85.09 kB / 0.5302 GB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003724/0.609, allocations: 343 kB / 0.5305 GB, free: 3.965 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 2.796e-06/0.609, allocations: 0 / 0.5305 GB, free: 3.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001772/0.6108, allocations: 0.6311 MB / 0.5311 GB, free: 3.523 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.6109, allocations: 195.2 kB / 0.5313 GB, free: 3.293 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.6111, allocations: 226.5 kB / 0.5315 GB, free: 3.113 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.6112, allocations: 29.7 kB / 0.5316 GB, free: 3.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.399e-05/0.6113, allocations: 138.4 kB / 0.5317 GB, free: 2.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.6114, allocations: 101.4 kB / 0.5318 GB, free: 2.863 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.6114, allocations: 0 / 0.5318 GB, free: 2.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.6115, allocations: 345.6 kB / 0.5321 GB, free: 2.527 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.6117, allocations: 157.4 kB / 0.5323 GB, free: 2.449 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.612, allocations: 194.1 kB / 0.5324 GB, free: 2.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004748/0.6125, allocations: 199.9 kB / 0.5326 GB, free: 2.203 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.6125, allocations: 7.906 kB / 0.5326 GB, free: 2.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00176/0.6143, allocations: 0.6932 MB / 0.5333 GB, free: 1.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.6143, allocations: 7.984 kB / 0.5333 GB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.6143, allocations: 0 / 0.5333 GB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.6156, allocations: 292.8 kB / 0.5336 GB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.6158, allocations: 35.98 kB / 0.5336 GB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003719/0.6195, allocations: 2.47 MB / 0.5361 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.6198, allocations: 27.67 kB / 0.5361 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.6199, allocations: 15.88 kB / 0.5361 GB, free: 15.41 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = false ) "true means the fault is active" type: Boolean lnFault.myFault.Y.im:DISCRETE(start = 0.0 fixed = false ) "Imaginary part of complex number" type: Real lnFault.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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.lnFault.myFault.fault,lnFault.myFault.fault,$PRE.lnFault.myFault.Y.re,lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002345/0.6201, allocations: 160.5 kB / 0.5363 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.6202, allocations: 31.7 kB / 0.5363 GB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.622, allocations: 0.7153 MB / 0.537 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.6221, allocations: 4 kB / 0.537 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6221, allocations: 0 / 0.537 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.6221, allocations: 3.984 kB / 0.537 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004667/0.6225, allocations: 475.3 kB / 0.5374 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.6226, allocations: 11.89 kB / 0.5375 GB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.6227, allocations: 27.98 kB / 0.5375 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/0.6239, allocations: 285.7 kB / 0.5378 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.6239, allocations: 7.875 kB / 0.5378 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003399/0.6273, allocations: 2.45 MB / 0.5402 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.6273, allocations: 4 kB / 0.5402 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001866/0.6292, allocations: 0.6951 MB / 0.5408 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001841/0.6311, allocations: 1.075 MB / 0.5419 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.6312, allocations: 108.4 kB / 0.542 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.911e-05/0.6313, allocations: 11.78 kB / 0.542 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.6315, allocations: 11.98 kB / 0.542 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.6316, allocations: 19.31 kB / 0.542 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/0.6316, allocations: 15.98 kB / 0.542 GB, free: 10.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001811/0.6318, allocations: 181.4 kB / 0.5422 GB, free: 10.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00101/0.6329, allocations: 107.4 kB / 0.5423 GB, free: 10.32 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,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002261/0.6331, allocations: 126.7 kB / 0.5424 GB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.6343, allocations: 0.5903 MB / 0.543 GB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6343, allocations: 0 / 0.543 GB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000822/0.6352, allocations: 462.6 kB / 0.5435 GB, free: 9.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00017/0.6353, allocations: 14.75 kB / 0.5435 GB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008784/0.6362, allocations: 396.7 kB / 0.5439 GB, free: 9.094 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004407/0.6367, allocations: 0.8026 MB / 0.5446 GB, free: 8.262 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6367, allocations: 0 / 0.5446 GB, free: 8.262 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneSourceOneLigneWithFault.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)