Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.001279/0.001279, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001286/0.001286, allocations: 189.4 kB / 18 MB, free: 5.09 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1835/0.1835, allocations: 38.05 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 67.89 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3133, allocations: 58.05 MB / 0.5036 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004947/0.3183, allocations: 4.044 MB / 0.5076 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.3198, allocations: 0.8974 MB / 0.5084 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.32, allocations: 12.16 kB / 0.5085 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.3203, allocations: 50.62 kB / 0.5085 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004902/0.3208, allocations: 183.9 kB / 0.5087 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.321, allocations: 91.36 kB / 0.5088 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.3215, allocations: 403.4 kB / 0.5092 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.3217, allocations: 122.3 kB / 0.5093 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.322, allocations: 176.7 kB / 0.5094 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.3224, allocations: 211 kB / 0.5096 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.579e-05/0.3224, allocations: 20.78 kB / 0.5097 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.594e-05/0.3225, allocations: 21 kB / 0.5097 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.3226, allocations: 104.3 kB / 0.5098 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.3228, allocations: 153.6 kB / 0.5099 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003773/0.3232, allocations: 310.2 kB / 0.5102 GB, free: 3.043 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3232, allocations: 0 / 0.5102 GB, free: 3.043 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3232, allocations: 0 / 0.5102 GB, free: 3.043 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3232, allocations: 1.125 kB / 0.5102 GB, free: 3.043 MB / 382.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.0009699/0.3242, allocations: 0.634 MB / 0.5108 GB, free: 2.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3242, allocations: 13.52 kB / 0.5109 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.725e-05/0.3243, allocations: 55.95 kB / 0.5109 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.062e-05/0.3243, allocations: 36.98 kB / 0.5109 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.3248, allocations: 350.6 kB / 0.5113 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3248, allocations: 22.62 kB / 0.5113 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.3248, allocations: 25.34 kB / 0.5113 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.3253, allocations: 319.2 kB / 0.5116 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.3254, allocations: 1.766 kB / 0.5116 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.3254, allocations: 6.344 kB / 0.5116 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3254, allocations: 6.5 kB / 0.5116 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/0.3258, allocations: 222 kB / 0.5119 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.3274, allocations: 1.342 MB / 0.5132 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003791/0.3278, allocations: 143.3 kB / 0.5133 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3279, allocations: 63.56 kB / 0.5134 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.328, allocations: 1.312 kB / 0.5134 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.328, allocations: 41.3 kB / 0.5134 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.328, allocations: 0 / 0.5134 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008824/0.3289, allocations: 371.4 kB / 0.5138 GB, free: 464 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.3289, allocations: 87.58 kB / 0.5138 GB, free: 360 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.3293, allocations: 253.6 kB / 0.5141 GB, free: 212 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3293, allocations: 31.61 kB / 0.5141 GB, free: 176 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.3295, allocations: 208.1 kB / 0.5143 GB, free: 15.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.434e-05/0.3296, allocations: 40.98 kB / 0.5144 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.3297, allocations: 50.86 kB / 0.5144 GB, free: 15.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.3299, allocations: 337.1 kB / 0.5147 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.33, allocations: 57.72 kB / 0.5148 GB, free: 15.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.3303, allocations: 152.4 kB / 0.5149 GB, free: 15.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.3307, allocations: 236.4 kB / 0.5151 GB, free: 15.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3307, allocations: 1.344 kB / 0.5151 GB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005216/0.3312, allocations: 255 kB / 0.5154 GB, free: 15.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.3312, allocations: 7.375 kB / 0.5154 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3313, allocations: 3.219 kB / 0.5154 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/0.3313, allocations: 4.375 kB / 0.5154 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3315, allocations: 48.3 kB / 0.5155 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.3315, allocations: 10.64 kB / 0.5155 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.3317, allocations: 13.23 kB / 0.5155 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.3317, allocations: 13.97 kB / 0.5155 GB, free: 15.11 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.3319, allocations: 157 kB / 0.5156 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.332, allocations: 27.41 kB / 0.5157 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003887/0.3324, allocations: 194.2 kB / 0.5158 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3324, allocations: 3.688 kB / 0.5159 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3324, allocations: 0 / 0.5159 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3324, allocations: 1.938 kB / 0.5159 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000789/0.3332, allocations: 0.5581 MB / 0.5164 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3332, allocations: 0 / 0.5164 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.3334, allocations: 29.78 kB / 0.5164 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3334, allocations: 6.562 kB / 0.5164 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.3334, allocations: 6.141 kB / 0.5164 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.3334, allocations: 6.016 kB / 0.5164 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3334, allocations: 1.281 kB / 0.5164 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.3338, allocations: 292.5 kB / 0.5167 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.766e-05/0.3339, allocations: 101.8 kB / 0.5168 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.3339, allocations: 1.641 kB / 0.5168 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.334, allocations: 11.12 kB / 0.5168 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.3341, allocations: 12.3 kB / 0.5168 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.3341, allocations: 5.484 kB / 0.5169 GB, free: 14.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.3343, allocations: 187 kB / 0.517 GB, free: 14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3343, allocations: 0 / 0.517 GB, free: 14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003828/0.3347, allocations: 49.05 kB / 0.5171 GB, free: 14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009599/0.3357, allocations: 0.8347 MB / 0.5179 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.3361, allocations: 164.9 kB / 0.5181 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3361, allocations: 0 / 0.5181 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.3363, allocations: 75.62 kB / 0.5181 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006123/0.3369, allocations: 59.2 kB / 0.5182 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003369/0.3403, allocations: 2.555 MB / 0.5207 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.3408, allocations: 0.7836 MB / 0.5214 GB, free: 10.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.3409, allocations: 43.56 kB / 0.5215 GB, free: 10.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.3411, allocations: 91.33 kB / 0.5216 GB, free: 10.48 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3411, allocations: 0 / 0.5216 GB, free: 10.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.3687, allocations: 4.952 MB / 0.5264 GB, free: 9.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.227/8.595, allocations: 9.078 kB / 0.5264 GB, free: 9.855 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches