Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",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.001404/0.001404, allocations: 105.9 kB / 16.31 MB, free: 5.879 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.001408/0.001408, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.351/1.351, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04641/0.04641, allocations: 8.108 MB / 299.2 MB, free: 6.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.91 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2013, allocations: 51.52 MB / 413.4 MB, free: 25.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.002657/0.2041, allocations: 1.763 MB / 415.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.2056, allocations: 1.473 MB / 416.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.832e-05/0.2057, allocations: 8 kB / 416.6 MB, free: 22.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003382/0.206, allocations: 123.3 kB / 416.7 MB, free: 22.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.2063, allocations: 99.31 kB / 416.8 MB, free: 22.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.2076, allocations: 0.9293 MB / 417.7 MB, free: 21.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.2078, allocations: 227 kB / 418 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.208, allocations: 123.7 kB / 418.1 MB, free: 20.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.083e-05/0.2081, allocations: 99.58 kB / 418.2 MB, free: 20.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.2083, allocations: 151.4 kB / 418.3 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.2083, allocations: 24 kB / 418.4 MB, free: 20.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003218/0.2087, allocations: 215.8 kB / 418.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.985e-05/0.2087, allocations: 43.84 kB / 418.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.575e-05/0.2088, allocations: 127.3 kB / 418.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.2092, allocations: 405.1 kB / 419.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2092, allocations: 0 / 419.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2092, allocations: 0 / 419.1 MB, free: 19.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.2092, allocations: 0 / 419.1 MB, free: 19.74 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001939/0.2112, allocations: 0.7684 MB / 419.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.2112, allocations: 11.89 kB / 419.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.137e-05/0.2113, allocations: 62.72 kB / 420 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.2113, allocations: 24.66 kB / 420 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.2115, allocations: 244.8 kB / 420.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.2116, allocations: 20.94 kB / 420.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.2116, allocations: 24.38 kB / 420.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003914/0.212, allocations: 301.2 kB / 420.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.212, allocations: 0 / 420.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.212, allocations: 12 kB / 420.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2121, allocations: 8 kB / 420.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.2124, allocations: 294.1 kB / 420.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.2135, allocations: 0.8892 MB / 421.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004183/0.214, allocations: 290.5 kB / 422 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.2141, allocations: 128.8 kB / 422.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-05/0.2142, allocations: 7.984 kB / 422.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.2142, allocations: 34.5 kB / 422.2 MB, free: 16.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.382e-06/0.2142, allocations: 0 / 422.2 MB, free: 16.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001059/0.2153, allocations: 0.5245 MB / 422.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.04e-05/0.2153, allocations: 51.41 kB / 422.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.2154, allocations: 170.8 kB / 423 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.2154, allocations: 29.7 kB / 423 MB, free: 15.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.2155, allocations: 144.4 kB / 423.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.309e-05/0.2155, allocations: 90.73 kB / 423.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.309e-05/0.2156, allocations: 73.39 kB / 423.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.2157, allocations: 326.8 kB / 423.6 MB, free: 15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.2158, allocations: 128 kB / 423.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.216, allocations: 135.9 kB / 423.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.2163, allocations: 289.2 kB / 424.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2164, allocations: 3.938 kB / 424.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005693/0.2169, allocations: 409.9 kB / 424.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.217, allocations: 8 kB / 424.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.217, allocations: 0 / 424.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/0.2172, allocations: 52.81 kB / 424.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.2175, allocations: 59.91 kB / 424.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001062/0.2186, allocations: 1.539 MB / 426.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.2188, allocations: 23.72 kB / 426.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.2188, allocations: 11.98 kB / 426.2 MB, free: 12.21 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.2189, allocations: 141.8 kB / 426.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.458e-05/0.219, allocations: 15.75 kB / 426.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005785/0.2195, allocations: 356.5 kB / 426.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2196, allocations: 4 kB / 426.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2196, allocations: 0 / 426.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2196, allocations: 3.984 kB / 426.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.2199, allocations: 361.2 kB / 427.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2199, allocations: 0 / 427.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.22, allocations: 43.92 kB / 427.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002025/0.2202, allocations: 52.81 kB / 427.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.2203, allocations: 8 kB / 427.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009008/0.2212, allocations: 1.531 MB / 428.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2212, allocations: 4.062 kB / 428.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004563/0.2217, allocations: 400.7 kB / 429.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.2217, allocations: 100.8 kB / 429.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.2217, allocations: 11.94 kB / 429.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.2219, allocations: 4 kB / 429.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.2219, allocations: 11.98 kB / 429.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.222, allocations: 12 kB / 429.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.322e-05/0.222, allocations: 133.7 kB / 429.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.222, allocations: 0 / 429.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000341/0.2224, allocations: 79.84 kB / 429.5 MB, free: 8.73 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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): 1 system {(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.0007036/0.2231, allocations: 0.9456 MB / 430.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007328/0.2238, allocations: 450.9 kB / 430.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2238, allocations: 0 / 430.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003776/0.2242, allocations: 250.5 kB / 431.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.2245, allocations: 19.59 kB / 431.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.227, allocations: 2.518 MB / 433.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.2271, allocations: 0.7398 MB / 434.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.2272, allocations: 29.52 kB / 434.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.2273, allocations: 71.41 kB / 434.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2273, allocations: 0 / 434.5 MB, free: 3.551 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.2581, allocations: 4.803 MB / 439.3 MB, free: 14.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.019/9.277, allocations: 9.656 kB / 439.3 MB, free: 14.83 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors_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_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)