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.001335/0.001335, allocations: 109.9 kB / 16.45 MB, free: 6.5 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.001386/0.001386, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.262/1.262, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04369/0.04369, allocations: 8.104 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 67.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08161/0.08275, allocations: 51.5 MB / 465.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLoadwithSensors): time 0.002894/0.08569, allocations: 1.743 MB / 467.2 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.08744, allocations: 1.329 MB / 468.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.08754, allocations: 4 kB / 468.6 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.08784, allocations: 103.4 kB / 468.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.08813, allocations: 95.3 kB / 468.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008847/0.08902, allocations: 457.9 kB / 469.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.0893, allocations: 230.9 kB / 469.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.08951, allocations: 110.4 kB / 469.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.08963, allocations: 107.6 kB / 469.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.08987, allocations: 143.5 kB / 469.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.08992, allocations: 24 kB / 469.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.09018, allocations: 119.9 kB / 469.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.828e-05/0.09023, allocations: 47.8 kB / 470 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.09036, allocations: 119.4 kB / 470.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.09078, allocations: 339 kB / 470.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09079, allocations: 0 / 470.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0908, allocations: 0 / 470.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.09081, allocations: 0 / 470.4 MB, free: 13.72 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001636/0.09246, allocations: 0.6704 MB / 471.1 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.09251, allocations: 15.83 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.09262, allocations: 62.72 kB / 471.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.04e-05/0.09269, allocations: 24.8 kB / 471.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.09291, allocations: 210.8 kB / 471.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.09294, allocations: 16.94 kB / 471.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.09298, allocations: 20.38 kB / 471.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000502/0.09349, allocations: 296 kB / 471.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.09351, allocations: 3.938 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.451e-05/0.09354, allocations: 8 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.09355, allocations: 4 kB / 471.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.09394, allocations: 245.3 kB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.09529, allocations: 0.9646 MB / 472.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007238/0.09603, allocations: 370.4 kB / 473.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.09622, allocations: 85.7 kB / 473.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.09628, allocations: 8 kB / 473.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.09631, allocations: 38.67 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.09632, allocations: 4 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.09743, allocations: 0.5246 MB / 474 MB, free: 9.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.09748, allocations: 85.11 kB / 474.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.09769, allocations: 198.5 kB / 474.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.09773, allocations: 29.7 kB / 474.3 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.664e-05/0.09782, allocations: 160.2 kB / 474.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.859e-05/0.09787, allocations: 75.31 kB / 474.5 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.888e-05/0.09796, allocations: 53.69 kB / 474.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.09814, allocations: 326.8 kB / 474.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.09827, allocations: 87.97 kB / 475 MB, free: 8.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.09846, allocations: 123.4 kB / 475.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.09877, allocations: 211.3 kB / 475.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.09878, allocations: 0 / 475.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006269/0.09941, allocations: 346.3 kB / 475.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.09944, allocations: 10.19 kB / 475.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.09945, allocations: 0 / 475.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/0.09981, allocations: 73.72 kB / 475.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.1, allocations: 51.91 kB / 475.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.1023, allocations: 2.875 MB / 478.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.1024, allocations: 23.78 kB / 478.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.1025, allocations: 11.98 kB / 478.7 MB, free: 4.82 MB / 350.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.0001323/0.1026, allocations: 141.9 kB / 478.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.1027, allocations: 23.89 kB / 478.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005648/0.1033, allocations: 292.4 kB / 479.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1033, allocations: 4 kB / 479.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1033, allocations: 4 kB / 479.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1033, allocations: 4 kB / 479.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007249/0.104, allocations: 0.558 MB / 479.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.104, allocations: 0 / 479.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.1041, allocations: 27.98 kB / 479.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002716/0.1044, allocations: 73.66 kB / 479.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1044, allocations: 4 kB / 479.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.1066, allocations: 2.875 MB / 482.7 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1067, allocations: 7.969 kB / 482.7 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005269/0.1072, allocations: 428.3 kB / 483.1 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.229e-05/0.1073, allocations: 100.9 kB / 483.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.1073, allocations: 4 kB / 483.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.1075, allocations: 15.92 kB / 483.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.1076, allocations: 19.97 kB / 483.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1076, allocations: 16 kB / 483.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.1078, allocations: 148.2 kB / 483.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1078, allocations: 0 / 483.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.1082, allocations: 79.84 kB / 483.5 MB, free: 15.61 MB / 366.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.0008653/0.1091, allocations: 0.9775 MB / 484.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000723/0.1098, allocations: 453.9 kB / 484.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.1098, allocations: 0 / 484.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004287/0.1103, allocations: 337.4 kB / 485.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.1107, allocations: 28.27 kB / 485.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.1137, allocations: 2.502 MB / 487.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.114, allocations: 0.744 MB / 488.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1141, allocations: 25.52 kB / 488.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.006e-05/0.1142, allocations: 71.59 kB / 488.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1142, allocations: 3.938 kB / 488.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03887/0.1531, allocations: 5.253 MB / 493.8 MB, free: 5.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.811/8.964, allocations: 4 kB / 493.8 MB, free: 5.121 MB / 366.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)