Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors.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.OneSourceOneLoadwithSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLoadwithSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLoadwithSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLoadwithSensors",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.001127/0.001127, allocations: 99.16 kB / 16.31 MB, free: 6.391 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.001064/0.001064, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05242/0.05242, allocations: 8.101 MB / 299.2 MB, free: 6.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 67.89 kB / 361.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2193, allocations: 51.51 MB / 413.3 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLoadwithSensors): time 0.002502/0.2219, allocations: 1.732 MB / 415.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.2232, allocations: 1.345 MB / 416.4 MB, free: 22.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.107e-05/0.2233, allocations: 4 kB / 416.4 MB, free: 22.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.2236, allocations: 91.48 kB / 416.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.2239, allocations: 99.31 kB / 416.6 MB, free: 22.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000695/0.2246, allocations: 453.8 kB / 417.1 MB, free: 21.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000154/0.2247, allocations: 218.9 kB / 417.3 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.2249, allocations: 110.3 kB / 417.4 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.413e-05/0.225, allocations: 103.6 kB / 417.5 MB, free: 21.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.2252, allocations: 147.4 kB / 417.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.2252, allocations: 20 kB / 417.6 MB, free: 21.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001925/0.2254, allocations: 127.9 kB / 417.8 MB, free: 21.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.2255, allocations: 43.84 kB / 417.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.987e-05/0.2256, allocations: 131.3 kB / 417.9 MB, free: 20.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.2259, allocations: 325.3 kB / 418.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2259, allocations: 0 / 418.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2259, allocations: 0 / 418.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.2259, allocations: 0 / 418.3 MB, free: 20.66 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001485/0.2274, allocations: 0.6708 MB / 418.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2274, allocations: 15.89 kB / 418.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.719e-05/0.2275, allocations: 54.73 kB / 419 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.2275, allocations: 24.66 kB / 419 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.2277, allocations: 206.7 kB / 419.2 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.2277, allocations: 20.94 kB / 419.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.2278, allocations: 20.38 kB / 419.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.2281, allocations: 296.1 kB / 419.6 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.2281, allocations: 3.938 kB / 419.6 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.2281, allocations: 8 kB / 419.6 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.2282, allocations: 8 kB / 419.6 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002757/0.2284, allocations: 246.9 kB / 419.8 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.2296, allocations: 0.9683 MB / 420.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/0.2302, allocations: 362.4 kB / 421.1 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.2304, allocations: 97.81 kB / 421.2 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.947e-05/0.2304, allocations: 4 kB / 421.2 MB, free: 17.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.2304, allocations: 34.56 kB / 421.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.2304, allocations: 0 / 421.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001018/0.2315, allocations: 0.5288 MB / 421.8 MB, free: 16.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.2315, allocations: 77.11 kB / 421.9 MB, free: 16.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.2317, allocations: 202.6 kB / 422.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.2317, allocations: 25.7 kB / 422.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.2317, allocations: 156 kB / 422.2 MB, free: 16.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.2318, allocations: 74.94 kB / 422.3 MB, free: 16.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.979e-05/0.2319, allocations: 57.59 kB / 422.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.019e-05/0.2319, allocations: 322.8 kB / 422.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.232, allocations: 83.97 kB / 422.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.2321, allocations: 127.4 kB / 422.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.2324, allocations: 219.2 kB / 423.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2324, allocations: 0 / 423.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005195/0.2329, allocations: 343.3 kB / 423.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2329, allocations: 8 kB / 423.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.2329, allocations: 0 / 423.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003788/0.2333, allocations: 73.59 kB / 423.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.2335, allocations: 51.97 kB / 423.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.2351, allocations: 2.883 MB / 426.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.2352, allocations: 23.72 kB / 426.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.2353, allocations: 12 kB / 426.5 MB, free: 11.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.2354, allocations: 137.9 kB / 426.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.2355, allocations: 19.81 kB / 426.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005321/0.236, allocations: 296.3 kB / 426.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.236, allocations: 7.984 kB / 426.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.236, allocations: 4 kB / 427 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.236, allocations: 4 kB / 427 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006105/0.2366, allocations: 0.5498 MB / 427.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2367, allocations: 0 / 427.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.2368, allocations: 27.98 kB / 427.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003003/0.2371, allocations: 81.59 kB / 427.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.2371, allocations: 8.266 kB / 427.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.2385, allocations: 2.867 MB / 430.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2385, allocations: 0 / 430.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004474/0.239, allocations: 437.4 kB / 430.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.739e-05/0.239, allocations: 96.84 kB / 431 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.2391, allocations: 15.97 kB / 431 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.2393, allocations: 19.92 kB / 431 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.2393, allocations: 15.92 kB / 431.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.2394, allocations: 12 kB / 431.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.2395, allocations: 147.7 kB / 431.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.2395, allocations: 0 / 431.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004234/0.2399, allocations: 79.78 kB / 431.3 MB, free: 6.566 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006722/0.2406, allocations: 0.9691 MB / 432.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000669/0.2413, allocations: 457.2 kB / 432.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2413, allocations: 4 kB / 432.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.2417, allocations: 333.4 kB / 433 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.2421, allocations: 23.98 kB / 433.1 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.2447, allocations: 2.487 MB / 435.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.2449, allocations: 0.7404 MB / 436.3 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.245, allocations: 25.52 kB / 436.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.73e-05/0.2451, allocations: 67.59 kB / 436.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2451, allocations: 0 / 436.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.2715, allocations: 5.159 MB / 441.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.062/9.333, allocations: 11.56 kB / 441.5 MB, free: 12.18 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneSourceOneLoadwithSensors.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLoadwithSensors.pipe 2>&1)