Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad.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.OneSourceOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceOneLoad",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.00166/0.001661, allocations: 109.5 kB / 16.45 MB, free: 6.395 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.001881/0.001881, allocations: 189.4 kB / 17.38 MB, free: 5.664 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.318/1.318, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04938/0.04938, allocations: 8.103 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 67.89 kB / 414 MB, free: 22.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.08973, allocations: 51.52 MB / 465.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLoad): time 0.002065/0.09184, allocations: 0.8778 MB / 466.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.09354, allocations: 1.283 MB / 467.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/0.09361, allocations: 0 / 467.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.09386, allocations: 63.7 kB / 467.7 MB, free: 460 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.09404, allocations: 35.77 kB / 467.8 MB, free: 424 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006985/0.09475, allocations: 358.4 kB / 468.1 MB, free: 64 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.09489, allocations: 71.83 kB / 468.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.09502, allocations: 43.86 kB / 468.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.384e-05/0.09507, allocations: 31.77 kB / 468.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.0952, allocations: 43.83 kB / 468.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.09523, allocations: 4 kB / 468.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.09544, allocations: 99.89 kB / 468.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.09547, allocations: 19.91 kB / 468.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.412e-05/0.09553, allocations: 35.75 kB / 468.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.09579, allocations: 147.8 kB / 468.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.09581, allocations: 7.938 kB / 468.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09581, allocations: 4 kB / 468.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.09582, allocations: 0 / 468.6 MB, free: 15.56 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009043/0.09673, allocations: 446.8 kB / 469 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.09678, allocations: 15.89 kB / 469.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.09684, allocations: 34.75 kB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.09688, allocations: 8.891 kB / 469.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.09707, allocations: 180.3 kB / 469.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.0971, allocations: 12.38 kB / 469.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.09712, allocations: 4.375 kB / 469.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.0973, allocations: 98.03 kB / 469.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.09732, allocations: 7.875 kB / 469.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.09733, allocations: 4 kB / 469.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.09734, allocations: 0 / 469.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.09747, allocations: 71.97 kB / 469.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.09806, allocations: 376.7 kB / 469.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.0984, allocations: 118.6 kB / 469.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.644e-05/0.09847, allocations: 32.84 kB / 470 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.09851, allocations: 0 / 470 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.09854, allocations: 34.56 kB / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.09855, allocations: 0 / 470 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005988/0.09915, allocations: 239.5 kB / 470.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.0992, allocations: 55.34 kB / 470.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.09938, allocations: 138 kB / 470.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.09941, allocations: 29.7 kB / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.09949, allocations: 103.9 kB / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.315e-05/0.09952, allocations: 27.78 kB / 470.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/0.09958, allocations: 29.7 kB / 470.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.09972, allocations: 314.8 kB / 470.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.713e-05/0.09978, allocations: 31.98 kB / 471 MB, free: 12.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.375e-05/0.09984, allocations: 35.98 kB / 471 MB, free: 12.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.09997, allocations: 72.94 kB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.09998, allocations: 0 / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002903/0.1003, allocations: 146.4 kB / 471.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.1003, allocations: 7.938 kB / 471.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1003, allocations: 0 / 471.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000225/0.1005, allocations: 36.83 kB / 471.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-05/0.1006, allocations: 12 kB / 471.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.102, allocations: 1.453 MB / 472.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.994e-05/0.1021, allocations: 11.92 kB / 472.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.1021, allocations: 3.984 kB / 472.7 MB, free: 11.02 MB / 350.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 (9): * Single equations (assignments): 8 * 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.0001124/0.1023, allocations: 121.9 kB / 472.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.489e-05/0.1023, allocations: 11.95 kB / 472.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003034/0.1026, allocations: 122.8 kB / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.1026, allocations: 0 / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1026, allocations: 7.938 kB / 473 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.1026, allocations: 4.266 kB / 473 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.1029, allocations: 197.6 kB / 473.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1029, allocations: 4 kB / 473.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.705e-05/0.1029, allocations: 15.92 kB / 473.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001531/0.1031, allocations: 36.78 kB / 473.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.1031, allocations: 0 / 473.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.1044, allocations: 1.434 MB / 474.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1044, allocations: 0 / 474.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000302/0.1047, allocations: 224.3 kB / 474.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.1048, allocations: 81.06 kB / 475 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1048, allocations: 0 / 475 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.1049, allocations: 11.98 kB / 475 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.385e-05/0.1049, allocations: 7.984 kB / 475 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.1049, allocations: 7.984 kB / 475 MB, free: 8.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1051, allocations: 111.4 kB / 475.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1051, allocations: 0 / 475.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.1054, allocations: 35.94 kB / 475.2 MB, free: 8.348 MB / 350.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 (6): * Single equations (assignments): 5 * 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.0006806/0.1061, allocations: 0.7522 MB / 475.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004205/0.1065, allocations: 198.6 kB / 476.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1065, allocations: 0 / 476.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.1067, allocations: 158.6 kB / 476.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.1071, allocations: 11.94 kB / 476.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.1091, allocations: 1.594 MB / 477.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1094, allocations: 0.6962 MB / 478.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.742e-05/0.1095, allocations: 12.59 kB / 478.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.892e-05/0.1095, allocations: 23.44 kB / 478.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1095, allocations: 192 / 478.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03599/0.1455, allocations: 2.864 MB / 481.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.438/9.584, allocations: 8.312 kB / 481.5 MB, free: 1.961 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad_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_OneSourceOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceOneLoad.pipe 2>&1)