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: "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000746/0.0007462, allocations: 102.8 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008301/0.0008301, allocations: 181.7 kB / 16.97 MB, free: 6.879 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.279/1.279, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.144/0.144, allocations: 8.089 MB / 300.2 MB, free: 2.938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003046, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.08798, allocations: 52.52 MB / 416.1 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.001814/0.08984, allocations: 1.255 MB / 417.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.09181, allocations: 1.54 MB / 418.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.83e-05/0.09188, allocations: 0 / 418.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003049/0.0922, allocations: 107.6 kB / 419 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.09243, allocations: 103.4 kB / 419.1 MB, free: 5.27 MB / 350.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.00143/0.09387, allocations: 0.8719 MB / 420 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.09417, allocations: 238.8 kB / 420.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.09433, allocations: 72.03 kB / 420.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.09444, allocations: 91.64 kB / 420.4 MB, free: 4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.09462, allocations: 119.4 kB / 420.5 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.09466, allocations: 12 kB / 420.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003347/0.09501, allocations: 191.8 kB / 420.7 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.09506, allocations: 39.78 kB / 420.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.09518, allocations: 133.2 kB / 420.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.09559, allocations: 383 kB / 421.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.0956, allocations: 0 / 421.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.328e-06/0.09562, allocations: 4 kB / 421.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.09563, allocations: 4 kB / 421.2 MB, free: 3.125 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002282/0.09791, allocations: 0.7757 MB / 422 MB, free: 2.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.09796, allocations: 8.031 kB / 422 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.096e-05/0.09803, allocations: 58.73 kB / 422.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.0981, allocations: 24.66 kB / 422.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.09838, allocations: 252.8 kB / 422.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.09841, allocations: 16.16 kB / 422.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.09845, allocations: 28.31 kB / 422.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004131/0.09887, allocations: 261.8 kB / 422.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.09889, allocations: 7.922 kB / 422.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.09892, allocations: 8 kB / 422.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.09894, allocations: 4 kB / 422.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000363/0.09931, allocations: 247.7 kB / 422.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.1007, allocations: 1.156 MB / 424.1 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1556/0.2563, allocations: 299.8 kB / 424.4 MB, free: 41.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.2565, allocations: 162.5 kB / 424.5 MB, free: 41.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-05/0.2566, allocations: 4.391 kB / 424.5 MB, free: 41.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003736/0.257, allocations: 224.8 kB / 424.7 MB, free: 41.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.875e-06/0.257, allocations: 0 / 424.7 MB, free: 41.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002638/0.2596, allocations: 0.9296 MB / 425.7 MB, free: 41.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.2597, allocations: 58.28 kB / 425.7 MB, free: 41.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.2598, allocations: 184 kB / 425.9 MB, free: 41.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.2599, allocations: 29.64 kB / 425.9 MB, free: 41.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.2599, allocations: 126 kB / 426.1 MB, free: 41.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.357e-05/0.26, allocations: 101 kB / 426.2 MB, free: 41.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.26, allocations: 35.86 kB / 426.2 MB, free: 41.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.519e-05/0.2601, allocations: 331 kB / 426.5 MB, free: 40.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.2603, allocations: 151.1 kB / 426.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.2605, allocations: 189 kB / 426.9 MB, free: 40.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004036/0.2609, allocations: 360.2 kB / 427.2 MB, free: 40.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2609, allocations: 0 / 427.2 MB, free: 40.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001429/0.2623, allocations: 0.6529 MB / 427.9 MB, free: 40.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2624, allocations: 12.03 kB / 427.9 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2624, allocations: 3.75 kB / 427.9 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.2638, allocations: 341.8 kB / 428.2 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.264, allocations: 50.23 kB / 428.3 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002974/0.267, allocations: 2.416 MB / 430.7 MB, free: 39.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.2672, allocations: 29.61 kB / 430.7 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.555e-05/0.2672, allocations: 10.59 kB / 430.7 MB, free: 39.37 MB / 350.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.0001144/0.2674, allocations: 142.6 kB / 430.9 MB, free: 39.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.372e-05/0.2674, allocations: 16.97 kB / 430.9 MB, free: 39.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.2689, allocations: 0.67 MB / 431.5 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2689, allocations: 3.094 kB / 431.5 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.269, allocations: 6.406 kB / 431.5 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.269, allocations: 3.328 kB / 431.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.2692, allocations: 390.5 kB / 431.9 MB, free: 38.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2692, allocations: 3.938 kB / 431.9 MB, free: 38.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.2694, allocations: 45.91 kB / 432 MB, free: 38.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/0.2707, allocations: 339.3 kB / 432.3 MB, free: 38.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.2708, allocations: 6.594 kB / 432.3 MB, free: 38.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.2735, allocations: 2.396 MB / 434.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2735, allocations: 0 / 434.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.2749, allocations: 0.6374 MB / 435.4 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.312e-05/0.2749, allocations: 102.7 kB / 435.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.065e-05/0.275, allocations: 8.875 kB / 435.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.2752, allocations: 19.73 kB / 435.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.2752, allocations: 24.5 kB / 435.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.2753, allocations: 10.39 kB / 435.5 MB, free: 37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.2754, allocations: 136.5 kB / 435.7 MB, free: 36.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2754, allocations: 0 / 435.7 MB, free: 36.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.2757, allocations: 104.1 kB / 435.8 MB, free: 36.88 MB / 350.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.001547/0.2772, allocations: 1.191 MB / 436.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.2784, allocations: 0.6114 MB / 437.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2784, allocations: 0 / 437.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008184/0.2792, allocations: 436.1 kB / 438 MB, free: 35.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.2795, allocations: 25.91 kB / 438 MB, free: 35.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004306/0.2838, allocations: 3.288 MB / 441.3 MB, free: 33.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.2839, allocations: 0.7488 MB / 442 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.2841, allocations: 35.78 kB / 442.1 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.45e-05/0.2842, allocations: 73.86 kB / 442.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2842, allocations: 0 / 442.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.3014, allocations: 7.62 MB / 449.8 MB, free: 32.11 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.3016, allocations: 234.8 kB / 450 MB, free: 31.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/2.038, allocations: 3.938 kB / 450 MB, free: 31.85 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_OneEmergencySourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)