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.001859/0.001859, allocations: 111.7 kB / 19.74 MB, free: 2.164 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.00243/0.00243, allocations: 219.8 kB / 23.05 MB, free: 5.004 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.507/1.507, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.04427/0.04427, allocations: 6.142 MB / 319.4 MB, free: 12.96 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 51.92 kB / 444.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1104, allocations: 55.01 MB / 499.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.004586/0.115, allocations: 2.474 MB / 0.4902 GB, free: 11.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.1196, allocations: 2.837 MB / 0.493 GB, free: 8.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002913/0.1198, allocations: 11.94 kB / 0.493 GB, free: 8.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006752/0.1205, allocations: 159 kB / 0.4932 GB, free: 8.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001069/0.1216, allocations: 338.3 kB / 0.4935 GB, free: 8.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002543/0.1241, allocations: 1.286 MB / 0.4947 GB, free: 7.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007213/0.1249, allocations: 426.2 kB / 0.4951 GB, free: 6.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.1251, allocations: 80.86 kB / 0.4952 GB, free: 6.648 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.1253, allocations: 175.3 kB / 0.4954 GB, free: 6.477 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003736/0.1257, allocations: 207.1 kB / 0.4956 GB, free: 6.273 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.166e-05/0.1258, allocations: 32 kB / 0.4956 GB, free: 6.242 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000815/0.1266, allocations: 403.6 kB / 0.496 GB, free: 5.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.1267, allocations: 95.59 kB / 0.4961 GB, free: 5.754 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002129/0.1269, allocations: 187 kB / 0.4963 GB, free: 5.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.128, allocations: 0.689 MB / 0.4969 GB, free: 4.879 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.128, allocations: 0 / 0.4969 GB, free: 4.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.128, allocations: 0 / 0.4969 GB, free: 4.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1281, allocations: 0 / 0.4969 GB, free: 4.879 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.004728/0.1328, allocations: 1.187 MB / 0.4981 GB, free: 3.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.1328, allocations: 8.031 kB / 0.4981 GB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.1329, allocations: 62.72 kB / 0.4982 GB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.1331, allocations: 52.59 kB / 0.4982 GB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.1336, allocations: 273.3 kB / 0.4985 GB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/0.1337, allocations: 58.91 kB / 0.4985 GB, free: 3.172 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.24e-05/0.1337, allocations: 31.94 kB / 0.4986 GB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008406/0.1346, allocations: 449.8 kB / 0.499 GB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1346, allocations: 0 / 0.499 GB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/0.1346, allocations: 12 kB / 0.499 GB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.1347, allocations: 8 kB / 0.499 GB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006936/0.1354, allocations: 394.5 kB / 0.4994 GB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.138, allocations: 1.309 MB / 0.5007 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.139, allocations: 463 kB / 0.5011 GB, free: 452 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000382/0.1394, allocations: 228.8 kB / 0.5013 GB, free: 220 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.409e-05/0.1395, allocations: 4 kB / 0.5013 GB, free: 216 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006799/0.1401, allocations: 331.1 kB / 0.5017 GB, free: 15.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.545e-06/0.1401, allocations: 0 / 0.5017 GB, free: 15.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.004304/0.1444, allocations: 1.26 MB / 0.5029 GB, free: 14.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.1445, allocations: 110.8 kB / 0.503 GB, free: 14.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.1449, allocations: 304.1 kB / 0.5033 GB, free: 14.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.145, allocations: 37.7 kB / 0.5033 GB, free: 14.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1451, allocations: 165.1 kB / 0.5035 GB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.1453, allocations: 154.7 kB / 0.5036 GB, free: 13.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.1454, allocations: 90.17 kB / 0.5037 GB, free: 13.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1456, allocations: 346.8 kB / 0.504 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.146, allocations: 260.9 kB / 0.5043 GB, free: 13.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004907/0.1465, allocations: 316 kB / 0.5046 GB, free: 12.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009301/0.1475, allocations: 0.5652 MB / 0.5051 GB, free: 12.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1475, allocations: 0 / 0.5051 GB, free: 12.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002188/0.1496, allocations: 0.908 MB / 0.506 GB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1497, allocations: 4 kB / 0.506 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1497, allocations: 3.938 kB / 0.506 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002811/0.1525, allocations: 0.6017 MB / 0.5066 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.1528, allocations: 79.89 kB / 0.5067 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.1546, allocations: 1.064 MB / 0.5077 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003695/0.155, allocations: 47.62 kB / 0.5078 GB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.432e-05/0.155, allocations: 19.98 kB / 0.5078 GB, free: 9.457 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.0002513/0.1553, allocations: 165.6 kB / 0.508 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.1554, allocations: 39.77 kB / 0.508 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/0.1568, allocations: 0.7662 MB / 0.5087 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1568, allocations: 7.938 kB / 0.5088 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1568, allocations: 0 / 0.5088 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1568, allocations: 3.984 kB / 0.5088 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006472/0.1575, allocations: 0.5475 MB / 0.5093 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1575, allocations: 0 / 0.5093 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.1577, allocations: 51.92 kB / 0.5093 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00266/0.1603, allocations: 0.5853 MB / 0.5099 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.1604, allocations: 12 kB / 0.5099 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.1621, allocations: 1.085 MB / 0.511 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1621, allocations: 0 / 0.511 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.1634, allocations: 0.7211 MB / 0.5117 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.288e-05/0.1634, allocations: 35.7 kB / 0.5117 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/0.1635, allocations: 15.94 kB / 0.5117 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.1638, allocations: 28.28 kB / 0.5118 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.287e-05/0.1639, allocations: 32.31 kB / 0.5118 GB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.164, allocations: 16 kB / 0.5118 GB, free: 5.234 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000254/0.1642, allocations: 211.1 kB / 0.512 GB, free: 5.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1642, allocations: 0 / 0.512 GB, free: 5.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004767/0.1647, allocations: 155.7 kB / 0.5122 GB, free: 4.879 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.003147/0.1678, allocations: 1.637 MB / 0.5138 GB, free: 3.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001892/0.1697, allocations: 0.6691 MB / 0.5144 GB, free: 2.703 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.1697, allocations: 7.938 kB / 0.5144 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.171, allocations: 374.4 kB / 0.5148 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.1714, allocations: 51.97 kB / 0.5148 GB, free: 2.277 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.2029/0.3743, allocations: 4.363 MB / 0.5191 GB, free: 29.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.3745, allocations: 0.7891 MB / 0.5199 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002318/0.3748, allocations: 56.3 kB / 0.5199 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.3749, allocations: 127.7 kB / 0.52 GB, free: 28.96 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3749, allocations: 3.25 kB / 0.52 GB, free: 28.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2571/0.632, allocations: 12.74 MB / 0.5325 GB, free: 25.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.13, allocations: 9.547 kB / 0.5325 GB, free: 25.88 MB / 382.1 MB " [Timeout remaining time 645] (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.5553416069597] Failed to read output from testmodel.py, exit status != 0: 15.342444201931357 15.363100902 15.231444881 Calling exit ...