Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 179 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.2 MB / 239.7 MB, free: 64 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001155, allocations: 98.59 kB / 290.9 MB, free: 4.574 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06926/0.06926, allocations: 8.106 MB / 350.1 MB, free: 4.832 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.00032, allocations: 16 kB / 413.2 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3045, allocations: 52.52 MB / 465.7 MB, free: 69.59 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.4142, allocations: 83.89 MB / 0.5367 GB, free: 1.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.4145, allocations: 67.97 kB / 0.5368 GB, free: 1.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03391/0.4484, allocations: 13.66 MB / 0.5501 GB, free: 3.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.4485, allocations: 0 / 0.5501 GB, free: 3.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.4485, allocations: 11.94 kB / 0.5501 GB, free: 3.719 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.002437/0.4509, allocations: 0.8887 MB / 0.551 GB, free: 2.781 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.451, allocations: 8.031 kB / 0.551 GB, free: 2.773 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.011e-05/0.4511, allocations: 62.53 kB / 0.5511 GB, free: 2.703 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.376e-05/0.4512, allocations: 43.53 kB / 0.5511 GB, free: 2.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.4517, allocations: 342.2 kB / 0.5514 GB, free: 2.289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.57e-05/0.4518, allocations: 50.27 kB / 0.5515 GB, free: 2.234 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.4518, allocations: 24 kB / 0.5515 GB, free: 2.211 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006971/0.4525, allocations: 444.4 kB / 0.5519 GB, free: 1.758 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.4526, allocations: 3.953 kB / 0.5519 GB, free: 1.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.082e-05/0.4526, allocations: 8 kB / 0.5519 GB, free: 1.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.4526, allocations: 8 kB / 0.552 GB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.4532, allocations: 382 kB / 0.5523 GB, free: 1.367 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2647/0.7179, allocations: 1.865 MB / 0.5541 GB, free: 85.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.7192, allocations: 498 kB / 0.5546 GB, free: 85.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001783/0.7194, allocations: 91.42 kB / 0.5547 GB, free: 85.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006628/0.72, allocations: 327.2 kB / 0.555 GB, free: 85.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.008e-06/0.7201, allocations: 0 / 0.555 GB, free: 85.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.005707/0.7258, allocations: 1.565 MB / 0.5565 GB, free: 85.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.7259, allocations: 107.9 kB / 0.5566 GB, free: 85.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.7263, allocations: 264.1 kB / 0.5569 GB, free: 85.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.553e-05/0.7263, allocations: 36.33 kB / 0.5569 GB, free: 85.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.7265, allocations: 164.8 kB / 0.5571 GB, free: 85.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.7266, allocations: 144.2 kB / 0.5572 GB, free: 85.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.7267, allocations: 6.969 kB / 0.5572 GB, free: 85.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.47e-05/0.7268, allocations: 350.7 kB / 0.5576 GB, free: 84.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.7271, allocations: 216.6 kB / 0.5578 GB, free: 84.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004041/0.7275, allocations: 257.8 kB / 0.558 GB, free: 84.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003985/0.728, allocations: 236.2 kB / 0.5582 GB, free: 84.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.728, allocations: 0 / 0.5582 GB, free: 84.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002874/0.7308, allocations: 0.9683 MB / 0.5592 GB, free: 84.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.7309, allocations: 4.344 kB / 0.5592 GB, free: 84.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.7309, allocations: 2.141 kB / 0.5592 GB, free: 84.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002981/0.7339, allocations: 0.5858 MB / 0.5598 GB, free: 84.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.7342, allocations: 59.95 kB / 0.5598 GB, free: 84.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.7364, allocations: 1.086 MB / 0.5609 GB, free: 84.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.7369, allocations: 38.22 kB / 0.5609 GB, free: 84.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/0.7369, allocations: 15.27 kB / 0.5609 GB, free: 84.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.varLoad.degradedMode,varLoad.degradedMode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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 {7 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002985/0.7372, allocations: 153.9 kB / 0.5611 GB, free: 84.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.7374, allocations: 41.19 kB / 0.5611 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002959/0.7403, allocations: 0.9827 MB / 0.5621 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.7404, allocations: 5.312 kB / 0.5621 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.7404, allocations: 3.953 kB / 0.5621 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.7404, allocations: 4.906 kB / 0.5621 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007029/0.7411, allocations: 0.6141 MB / 0.5627 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.7411, allocations: 0 / 0.5627 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.7413, allocations: 59.81 kB / 0.5628 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002465/0.7438, allocations: 0.5754 MB / 0.5633 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.7439, allocations: 15.58 kB / 0.5633 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.7451, allocations: 1.058 MB / 0.5644 GB, free: 82.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7452, allocations: 0 / 0.5644 GB, free: 82.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.7473, allocations: 0.929 MB / 0.5653 GB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.7475, allocations: 124.8 kB / 0.5654 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.127e-05/0.7475, allocations: 11.78 kB / 0.5654 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003384/0.7479, allocations: 23.17 kB / 0.5654 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.739e-05/0.748, allocations: 32.23 kB / 0.5655 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.748, allocations: 15.78 kB / 0.5655 GB, free: 82.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002235/0.7483, allocations: 217.7 kB / 0.5657 GB, free: 82.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7483, allocations: 0 / 0.5657 GB, free: 82.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004812/0.7488, allocations: 132.7 kB / 0.5658 GB, free: 82.14 MB / 378.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: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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 {6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0033/0.7521, allocations: 1.802 MB / 0.5676 GB, free: 81.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.754, allocations: 0.6733 MB / 0.5682 GB, free: 80.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.754, allocations: 3.406 kB / 0.5682 GB, free: 80.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.7551, allocations: 393.7 kB / 0.5686 GB, free: 80.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003276/0.7555, allocations: 34.22 kB / 0.5686 GB, free: 80.75 MB / 378.7 MB Warning: Could not resolve URI (loadFile) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.76, allocations: 2.658 MB / 0.5712 GB, free: 79.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.7603, allocations: 0.7978 MB / 0.572 GB, free: 78.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.7605, allocations: 58.16 kB / 0.5721 GB, free: 78.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.7607, allocations: 124.5 kB / 0.5722 GB, free: 78.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7608, allocations: 3.719 kB / 0.5722 GB, free: 78.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1252/0.886, allocations: 10.58 MB / 0.5825 GB, free: 72.12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.8862, allocations: 224.3 kB / 0.5827 GB, free: 71.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/3.299, allocations: 0 / 0.5827 GB, free: 71.88 MB / 378.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableLoad_fmu --startTime=0 --stopTime=3.15324e+07 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1)