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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 105 kB / 20.53 MB, free: 1.422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 206.6 kB / 23.83 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 230.6 MB / 257.6 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.03628/0.03628, allocations: 6.139 MB / 320.2 MB, free: 12.95 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 51.91 kB / 445.3 MB, free: 5.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1033, allocations: 55.02 MB / 0.4886 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003994/0.1073, allocations: 2.467 MB / 0.491 GB, free: 11.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004276/0.1116, allocations: 2.837 MB / 0.4938 GB, free: 8.922 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.1117, allocations: 7.938 kB / 0.4938 GB, free: 8.914 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005334/0.1123, allocations: 171 kB / 0.4939 GB, free: 8.746 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008534/0.1131, allocations: 334.2 kB / 0.4943 GB, free: 8.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.1156, allocations: 1.282 MB / 0.4955 GB, free: 7.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006859/0.1162, allocations: 426.2 kB / 0.4959 GB, free: 6.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.1165, allocations: 88.86 kB / 0.496 GB, free: 6.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.1167, allocations: 171.3 kB / 0.4962 GB, free: 6.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.1171, allocations: 215 kB / 0.4964 GB, free: 6.254 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.716e-05/0.1171, allocations: 28 kB / 0.4964 GB, free: 6.227 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008753/0.118, allocations: 407.6 kB / 0.4968 GB, free: 5.828 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.1181, allocations: 91.61 kB / 0.4969 GB, free: 5.738 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002148/0.1183, allocations: 191 kB / 0.4971 GB, free: 5.551 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.1194, allocations: 0.6851 MB / 0.4977 GB, free: 4.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1194, allocations: 4 kB / 0.4977 GB, free: 4.859 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1194, allocations: 0 / 0.4977 GB, free: 4.859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1195, allocations: 0 / 0.4977 GB, free: 4.859 MB / 366.1 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.004614/0.1241, allocations: 1.183 MB / 0.4989 GB, free: 3.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1241, allocations: 12.03 kB / 0.4989 GB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.342e-05/0.1241, allocations: 4.844 kB / 0.4989 GB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.1242, allocations: 74.66 kB / 0.499 GB, free: 3.543 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.1244, allocations: 48.66 kB / 0.499 GB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004672/0.1248, allocations: 269.4 kB / 0.4993 GB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.793e-05/0.1249, allocations: 54.66 kB / 0.4993 GB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.125, allocations: 36 kB / 0.4994 GB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008145/0.1258, allocations: 445.8 kB / 0.4998 GB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1258, allocations: 0 / 0.4998 GB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.1258, allocations: 12 kB / 0.4998 GB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1259, allocations: 8 kB / 0.4998 GB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007029/0.1266, allocations: 402.5 kB / 0.5002 GB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.1292, allocations: 1.301 MB / 0.5015 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009905/0.1302, allocations: 467 kB / 0.5019 GB, free: 420 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.1306, allocations: 220.8 kB / 0.5021 GB, free: 196 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.905e-05/0.1306, allocations: 11.98 kB / 0.5021 GB, free: 184 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006758/0.1313, allocations: 327.1 kB / 0.5024 GB, free: 15.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.044e-06/0.1313, allocations: 0 / 0.5024 GB, free: 15.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.00443/0.1357, allocations: 1.264 MB / 0.5037 GB, free: 14.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/0.1358, allocations: 114.8 kB / 0.5038 GB, free: 14.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.1362, allocations: 304 kB / 0.5041 GB, free: 14.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.399e-05/0.1363, allocations: 37.7 kB / 0.5041 GB, free: 14.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.1364, allocations: 165.1 kB / 0.5043 GB, free: 13.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.1365, allocations: 150.7 kB / 0.5044 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.1367, allocations: 98.17 kB / 0.5045 GB, free: 13.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1369, allocations: 342.8 kB / 0.5048 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.1373, allocations: 264.9 kB / 0.5051 GB, free: 13.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004908/0.1378, allocations: 308 kB / 0.5054 GB, free: 12.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000919/0.1387, allocations: 0.5652 MB / 0.5059 GB, free: 12.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1387, allocations: 0 / 0.5059 GB, free: 12.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002123/0.1409, allocations: 0.9041 MB / 0.5068 GB, free: 11.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1409, allocations: 11.88 kB / 0.5068 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1409, allocations: 7.984 kB / 0.5068 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002796/0.1437, allocations: 0.6044 MB / 0.5074 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.144, allocations: 75.89 kB / 0.5075 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.1458, allocations: 1.068 MB / 0.5085 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.1461, allocations: 47.62 kB / 0.5086 GB, free: 9.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.1462, allocations: 19.98 kB / 0.5086 GB, free: 9.422 MB / 382.1 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 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(7,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002227/0.1464, allocations: 157.7 kB / 0.5088 GB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.768e-05/0.1465, allocations: 43.77 kB / 0.5088 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.148, allocations: 0.7623 MB / 0.5095 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.148, allocations: 4 kB / 0.5095 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.148, allocations: 0 / 0.5095 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.148, allocations: 3.984 kB / 0.5095 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006507/0.1486, allocations: 0.5436 MB / 0.5101 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1486, allocations: 0 / 0.5101 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.1488, allocations: 47.92 kB / 0.5101 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002715/0.1515, allocations: 0.5926 MB / 0.5107 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.743e-05/0.1516, allocations: 8 kB / 0.5107 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.1533, allocations: 1.083 MB / 0.5118 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1533, allocations: 0 / 0.5118 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.1546, allocations: 0.7289 MB / 0.5125 GB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.914e-05/0.1547, allocations: 39.64 kB / 0.5125 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.023e-05/0.1548, allocations: 11.94 kB / 0.5125 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003259/0.1551, allocations: 27.97 kB / 0.5126 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-05/0.1552, allocations: 32.38 kB / 0.5126 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.055e-05/0.1552, allocations: 12 kB / 0.5126 GB, free: 5.211 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.1555, allocations: 219.1 kB / 0.5128 GB, free: 4.996 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1555, allocations: 0 / 0.5128 GB, free: 4.996 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004733/0.156, allocations: 147.8 kB / 0.5129 GB, free: 4.852 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: 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 (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 {(7,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003126/0.1591, allocations: 1.636 MB / 0.5145 GB, free: 3.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.161, allocations: 0.673 MB / 0.5152 GB, free: 2.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.161, allocations: 4 kB / 0.5152 GB, free: 2.668 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.1622, allocations: 374.3 kB / 0.5156 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.1626, allocations: 44.97 kB / 0.5156 GB, free: 2.254 MB / 382.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1868/0.3495, allocations: 4.369 MB / 0.5199 GB, free: 29.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/0.3497, allocations: 0.7859 MB / 0.5206 GB, free: 28.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.3499, allocations: 52.02 kB / 0.5207 GB, free: 28.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.35, allocations: 134.5 kB / 0.5208 GB, free: 28.98 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.35, allocations: 0 / 0.5208 GB, free: 28.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3501/0.7001, allocations: 12.77 MB / 0.5333 GB, free: 25.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.54, allocations: 12.09 kB / 0.5333 GB, free: 25.91 MB / 382.1 MB " [Timeout remaining time 644] (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/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableLoad_fmu --startTime=0 --stopTime=3.15324e+07 --stepSize=12613 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.904807783081196] Failed to read output from testmodel.py, exit status != 0: 15.79004450305365 15.804217196 15.682253629 Calling exit ...