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.001686/0.001686, allocations: 99.36 kB / 16.45 MB, free: 6.402 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.001831/0.001831, allocations: 185.4 kB / 17.38 MB, free: 5.676 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.377/1.377, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05064/0.05064, allocations: 8.093 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 63.89 kB / 414 MB, free: 22.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08881, allocations: 51.52 MB / 465.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLoadwithSensors): time 0.003/0.09185, allocations: 1.743 MB / 467.2 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.09384, allocations: 1.325 MB / 468.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.998e-05/0.09394, allocations: 4 kB / 468.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003223/0.09429, allocations: 107.4 kB / 468.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002593/0.09456, allocations: 95.31 kB / 468.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009119/0.09548, allocations: 453.4 kB / 469.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.09576, allocations: 230.8 kB / 469.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.09597, allocations: 118.4 kB / 469.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.0961, allocations: 99.58 kB / 469.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.09635, allocations: 139.5 kB / 469.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.0964, allocations: 20 kB / 469.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000263/0.09666, allocations: 127.9 kB / 469.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.09673, allocations: 59.77 kB / 470 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.09686, allocations: 107.5 kB / 470.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.09731, allocations: 339 kB / 470.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.09733, allocations: 4 kB / 470.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09734, allocations: 0 / 470.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.09735, allocations: 0 / 470.4 MB, free: 13.84 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.001747/0.0991, allocations: 0.6703 MB / 471.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.09915, allocations: 11.89 kB / 471.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.882e-05/0.09923, allocations: 66.66 kB / 471.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.165e-05/0.0993, allocations: 24.8 kB / 471.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.09954, allocations: 204.1 kB / 471.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.09957, allocations: 20.94 kB / 471.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.09961, allocations: 16.38 kB / 471.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000467/0.1001, allocations: 296.1 kB / 471.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.1001, allocations: 7.875 kB / 471.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.1001, allocations: 12 kB / 471.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.1002, allocations: 7.984 kB / 471.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.1006, allocations: 245.3 kB / 472 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.1021, allocations: 0.9607 MB / 473 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000813/0.1029, allocations: 366.5 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.103, allocations: 85.7 kB / 473.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.443e-05/0.1031, allocations: 15.97 kB / 473.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1031, allocations: 34.56 kB / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.1031, allocations: 0 / 473.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001196/0.1043, allocations: 0.5208 MB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.1044, allocations: 85.11 kB / 474 MB, free: 9.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/0.1047, allocations: 194.9 kB / 474.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.1047, allocations: 33.64 kB / 474.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1048, allocations: 160.3 kB / 474.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.1049, allocations: 75.31 kB / 474.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.995e-05/0.105, allocations: 53.62 kB / 474.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.1052, allocations: 326.8 kB / 474.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.1053, allocations: 87.97 kB / 475 MB, free: 8.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.1055, allocations: 123.4 kB / 475.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.1058, allocations: 215.3 kB / 475.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1058, allocations: 3.938 kB / 475.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006314/0.1065, allocations: 338.2 kB / 475.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1065, allocations: 4 kB / 475.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1065, allocations: 8.062 kB / 475.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003771/0.1069, allocations: 69.66 kB / 475.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.1071, allocations: 47.91 kB / 475.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002555/0.1097, allocations: 2.875 MB / 478.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.1098, allocations: 35.8 kB / 478.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.1099, allocations: 4 kB / 478.7 MB, free: 4.941 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.0001542/0.11, allocations: 141.7 kB / 478.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.1101, allocations: 19.91 kB / 478.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006297/0.1107, allocations: 301 kB / 479.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1108, allocations: 4 kB / 479.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.1108, allocations: 0 / 479.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1108, allocations: 3.984 kB / 479.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008209/0.1116, allocations: 0.5537 MB / 479.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1116, allocations: 8 kB / 479.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1117, allocations: 27.92 kB / 479.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002943/0.112, allocations: 69.66 kB / 479.8 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.1121, allocations: 8 kB / 479.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002482/0.1146, allocations: 2.879 MB / 482.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1146, allocations: 0 / 482.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006197/0.1152, allocations: 435.5 kB / 483.1 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.256e-05/0.1153, allocations: 101.1 kB / 483.2 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.1153, allocations: 4 kB / 483.2 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.1156, allocations: 23.97 kB / 483.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.488e-05/0.1156, allocations: 19.91 kB / 483.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.1156, allocations: 4 kB / 483.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.1158, allocations: 152.2 kB / 483.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1158, allocations: 0 / 483.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004383/0.1163, allocations: 79.84 kB / 483.5 MB, free: 15.73 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.00108/0.1174, allocations: 0.9786 MB / 484.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008378/0.1182, allocations: 449.2 kB / 484.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1182, allocations: 4.125 kB / 484.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.1187, allocations: 329.3 kB / 485.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.1192, allocations: 23.98 kB / 485.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.1226, allocations: 2.52 MB / 487.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.1231, allocations: 0.7323 MB / 488.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.1232, allocations: 37.52 kB / 488.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.1233, allocations: 63.41 kB / 488.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1233, allocations: 0 / 488.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03218/0.1555, allocations: 5.262 MB / 493.8 MB, free: 5.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.559/9.715, allocations: 8.047 kB / 493.9 MB, free: 5.234 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)