Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.001143/0.001143, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001055/0.001055, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.254/1.254, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1615/0.1615, allocations: 38.04 MB / 329.3 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 56.98 kB / 398.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1082, allocations: 58.07 MB / 456.3 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.005769/0.114, allocations: 5.146 MB / 461.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1166, allocations: 1.628 MB / 463 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003123/0.1169, allocations: 23.88 kB / 463.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007634/0.1177, allocations: 270.9 kB / 463.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005413/0.1183, allocations: 266.8 kB / 463.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.1188, allocations: 235.6 kB / 463.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008351/0.1197, allocations: 0.9979 MB / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003812/0.1201, allocations: 228.3 kB / 465 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003353/0.1204, allocations: 243 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005493/0.121, allocations: 438.7 kB / 465.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.487e-05/0.1211, allocations: 24 kB / 465.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004275/0.1215, allocations: 235.5 kB / 465.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.1217, allocations: 231.4 kB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002924/0.122, allocations: 270.6 kB / 466.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006957/0.1227, allocations: 0.7242 MB / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1227, allocations: 0 / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1227, allocations: 0 / 467.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1228, allocations: 0 / 467.2 MB, free: 13.46 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001582/0.1243, allocations: 0.8883 MB / 468 MB, free: 12.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.1244, allocations: 12.03 kB / 468.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.1245, allocations: 90.7 kB / 468.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005517/0.1251, allocations: 96.12 kB / 468.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005867/0.1257, allocations: 408.1 kB / 468.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/0.1257, allocations: 25.38 kB / 468.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-05/0.1258, allocations: 55.83 kB / 468.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.1269, allocations: 0.859 MB / 469.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.127, allocations: 4 kB / 469.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.188e-05/0.127, allocations: 16 kB / 469.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/0.1272, allocations: 60.95 kB / 469.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.1282, allocations: 0.8002 MB / 470.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003341/0.1316, allocations: 2.725 MB / 473.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007667/0.1324, allocations: 0.5816 MB / 473.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.1328, allocations: 458.7 kB / 474.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.1329, allocations: 7.984 kB / 474.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.1329, allocations: 38.55 kB / 474.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.587e-06/0.1329, allocations: 4 kB / 474.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002592/0.1355, allocations: 1.879 MB / 476.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.1356, allocations: 134.8 kB / 476.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.1359, allocations: 296.4 kB / 476.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.1359, allocations: 29.7 kB / 476.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.1361, allocations: 276.3 kB / 476.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.1362, allocations: 181.3 kB / 477 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.1363, allocations: 102 kB / 477.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1365, allocations: 354.7 kB / 477.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.1369, allocations: 344.8 kB / 477.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004932/0.1374, allocations: 485.8 kB / 478.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.1385, allocations: 0.9799 MB / 479.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1385, allocations: 7.938 kB / 479.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001305/0.1398, allocations: 0.9772 MB / 480.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.208e-05/0.1399, allocations: 81.62 kB / 480.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1399, allocations: 4 kB / 480.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001294/0.14, allocations: 36.84 kB / 480.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.1404, allocations: 91.81 kB / 480.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.1414, allocations: 1.441 MB / 481.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.1417, allocations: 31.97 kB / 481.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.848e-05/0.1418, allocations: 35.88 kB / 482 MB, free: 13.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003744/0.1422, allocations: 296.1 kB / 482.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.1423, allocations: 39.59 kB / 482.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.1437, allocations: 1.08 MB / 483.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/0.1437, allocations: 12 kB / 483.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1438, allocations: 3.938 kB / 483.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1438, allocations: 0 / 483.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.146, allocations: 1.804 MB / 485.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.1461, allocations: 4 kB / 485.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.1463, allocations: 55.91 kB / 485.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.1464, allocations: 32.83 kB / 485.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/0.1465, allocations: 15.98 kB / 485.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.1476, allocations: 1.433 MB / 486.7 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1476, allocations: 3.938 kB / 486.7 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.149, allocations: 1.183 MB / 487.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.1492, allocations: 176.4 kB / 488.1 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.708e-05/0.1493, allocations: 15.98 kB / 488.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.1495, allocations: 23.97 kB / 488.1 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.1497, allocations: 39.95 kB / 488.2 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/0.1497, allocations: 27.98 kB / 488.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000224/0.15, allocations: 207.1 kB / 488.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.15, allocations: 0 / 488.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005323/0.1505, allocations: 144 kB / 488.6 MB, free: 7.055 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00177/0.1523, allocations: 1.759 MB / 490.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1539, allocations: 1.375 MB / 491.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1539, allocations: 0 / 491.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009334/0.1548, allocations: 0.9279 MB / 492.6 MB, free: 2.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/0.1554, allocations: 72.98 kB / 492.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006892/0.1623, allocations: 6.073 MB / 498.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.1628, allocations: 0.8976 MB / 499.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002904/0.1631, allocations: 103.2 kB / 499.8 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.1633, allocations: 155.4 kB / 499.9 MB, free: 11.35 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1633, allocations: 0 / 499.9 MB, free: 11.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02042/0.1837, allocations: 9.698 MB / 0.4977 GB, free: 1.801 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/0.1839, allocations: 224.8 kB / 0.4979 GB, free: 1.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/1.986, allocations: 0 / 0.4979 GB, free: 1.551 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches