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.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004278/0.004278, allocations: 89.55 kB / 15.91 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 196 kB / 16.83 MB, free: 6.238 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.296/1.296, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1496/0.1496, allocations: 8.086 MB / 298.7 MB, free: 2.031 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 361.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08833/0.08966, allocations: 51.52 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003636/0.09333, allocations: 2.504 MB / 415.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.09648, allocations: 2.52 MB / 417.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.09672, allocations: 4 kB / 417.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005092/0.09725, allocations: 147.4 kB / 417.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007079/0.09797, allocations: 266.8 kB / 418.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002042/0.1, allocations: 1.249 MB / 419.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005117/0.1005, allocations: 398.2 kB / 419.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.1008, allocations: 111.6 kB / 419.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.101, allocations: 159.3 kB / 420 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.1012, allocations: 199.1 kB / 420.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.335e-05/0.1013, allocations: 20 kB / 420.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005343/0.1019, allocations: 331.7 kB / 420.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.743e-05/0.102, allocations: 71.73 kB / 420.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.1021, allocations: 179 kB / 420.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007328/0.1029, allocations: 0.6193 MB / 421.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1029, allocations: 8 kB / 421.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1029, allocations: 0 / 421.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1029, allocations: 0 / 421.4 MB, free: 1.281 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.003961/0.1069, allocations: 1.22 MB / 422.6 MB, free: 12 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1069, allocations: 12.03 kB / 422.6 MB, free: 0 / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.398e-05/0.107, allocations: 62.72 kB / 422.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1071, allocations: 48.38 kB / 422.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.1075, allocations: 323.5 kB / 423.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/0.1076, allocations: 54.83 kB / 423.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.1076, allocations: 35.94 kB / 423.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.1083, allocations: 440.4 kB / 423.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1083, allocations: 0 / 423.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.1084, allocations: 15.98 kB / 423.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1084, allocations: 4 kB / 423.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005626/0.109, allocations: 382.1 kB / 424 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.1111, allocations: 1.769 MB / 425.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008458/0.112, allocations: 491 kB / 426.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003336/0.1123, allocations: 248.8 kB / 426.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.283e-05/0.1124, allocations: 12 kB / 426.5 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005262/0.113, allocations: 323.1 kB / 426.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.113, allocations: 0 / 426.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.003938/0.1169, allocations: 1.355 MB / 428.1 MB, free: 10.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.117, allocations: 114.8 kB / 428.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/0.1173, allocations: 279 kB / 428.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.1173, allocations: 41.69 kB / 428.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1174, allocations: 156.9 kB / 428.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.1176, allocations: 149.9 kB / 428.9 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.1177, allocations: 94.23 kB / 429 MB, free: 9.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1179, allocations: 342.8 kB / 429.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.1183, allocations: 265 kB / 429.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.1187, allocations: 304.7 kB / 429.9 MB, free: 8.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007992/0.1195, allocations: 0.5547 MB / 430.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1195, allocations: 0 / 430.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001911/0.1214, allocations: 0.921 MB / 431.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.1214, allocations: 4 kB / 431.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1215, allocations: 11.88 kB / 431.3 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.1241, allocations: 0.6072 MB / 432 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.1244, allocations: 71.91 kB / 432 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.1259, allocations: 1.072 MB / 433.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.1262, allocations: 43.58 kB / 433.1 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.035e-05/0.1263, allocations: 16 kB / 433.2 MB, free: 5.07 MB / 366.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.0001813/0.1265, allocations: 164.3 kB / 433.3 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.1266, allocations: 35.62 kB / 433.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.1278, allocations: 0.7856 MB / 434.1 MB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1278, allocations: 4 kB / 434.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1279, allocations: 4 kB / 434.1 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1279, allocations: 0 / 434.1 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004974/0.1284, allocations: 0.5563 MB / 434.7 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1284, allocations: 0 / 434.7 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.1286, allocations: 51.92 kB / 434.8 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/0.1311, allocations: 0.5915 MB / 435.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.1311, allocations: 8 kB / 435.3 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.1326, allocations: 1.093 MB / 436.4 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1326, allocations: 3.984 kB / 436.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.1337, allocations: 0.7366 MB / 437.2 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.1338, allocations: 112.6 kB / 437.3 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.1338, allocations: 11.94 kB / 437.3 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.1341, allocations: 23.98 kB / 437.3 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.688e-05/0.1342, allocations: 28.39 kB / 437.4 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.615e-05/0.1342, allocations: 16 kB / 437.4 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.1344, allocations: 202 kB / 437.6 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1345, allocations: 3.938 kB / 437.6 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003807/0.1348, allocations: 135.8 kB / 437.7 MB, free: 392 kB / 366.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.1514/0.2863, allocations: 1.579 MB / 439.3 MB, free: 57.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.288, allocations: 0.7056 MB / 440 MB, free: 57.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.288, allocations: 0.9844 kB / 440 MB, free: 57.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.2891, allocations: 411 kB / 440.4 MB, free: 57.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.2895, allocations: 48.48 kB / 440.4 MB, free: 57.17 MB / 366.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.006035/0.2956, allocations: 4.487 MB / 444.9 MB, free: 55.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.2958, allocations: 0.7943 MB / 445.7 MB, free: 54.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000188/0.296, allocations: 57.61 kB / 445.8 MB, free: 54.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.2962, allocations: 124.1 kB / 445.9 MB, free: 54.84 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2962, allocations: 0 / 445.9 MB, free: 54.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1192/0.4154, allocations: 10.99 MB / 456.9 MB, free: 53.8 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001331/0.4156, allocations: 253.7 kB / 457.1 MB, free: 53.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.222, allocations: 0 / 457.1 MB, free: 53.54 MB / 366.1 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/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)