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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002169/0.002169, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1885/0.1885, allocations: 38.5 MB / 342.5 MB, free: 8.094 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002525/0.002525, allocations: 60.5 kB / 478.6 MB, free: 33.67 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1248, allocations: 61.25 MB / 0.5272 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.007055/0.1318, allocations: 4.076 MB / 0.5312 GB, free: 13.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.1338, allocations: 0.9076 MB / 0.5321 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002941/0.1341, allocations: 15.88 kB / 0.5321 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.1344, allocations: 47.56 kB / 0.5321 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000619/0.135, allocations: 187 kB / 0.5323 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.1352, allocations: 91.83 kB / 0.5324 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.1358, allocations: 402.6 kB / 0.5328 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002518/0.136, allocations: 90.25 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003835/0.1364, allocations: 187.2 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.1369, allocations: 219.2 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.241e-05/0.1369, allocations: 20 kB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.408e-05/0.137, allocations: 24 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.1371, allocations: 99.7 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.1373, allocations: 151.2 kB / 0.5336 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004243/0.1378, allocations: 326.5 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1378, allocations: 0 / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1378, allocations: 4 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.1378, allocations: 0 / 0.5339 GB, free: 10.57 MB / 398.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.001181/0.139, allocations: 0.6204 MB / 0.5345 GB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.139, allocations: 11.89 kB / 0.5345 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.72e-05/0.1391, allocations: 54.73 kB / 0.5345 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.505e-05/0.1391, allocations: 40.7 kB / 0.5346 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.1397, allocations: 359.2 kB / 0.5349 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1397, allocations: 12.94 kB / 0.5349 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.1398, allocations: 31.88 kB / 0.535 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.1402, allocations: 312.5 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.1402, allocations: 0 / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.1403, allocations: 16 kB / 0.5353 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1403, allocations: 4 kB / 0.5353 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.1407, allocations: 217.5 kB / 0.5355 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.1423, allocations: 1.344 MB / 0.5368 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000347/0.1427, allocations: 141.1 kB / 0.5369 GB, free: 7.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.997e-05/0.1428, allocations: 57.75 kB / 0.537 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.1428, allocations: 4 kB / 0.537 GB, free: 7.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.1428, allocations: 34.5 kB / 0.537 GB, free: 7.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.1428, allocations: 4 kB / 0.537 GB, free: 7.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.000797/0.1436, allocations: 376.5 kB / 0.5374 GB, free: 6.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.1437, allocations: 81.05 kB / 0.5375 GB, free: 6.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.144, allocations: 263 kB / 0.5377 GB, free: 6.328 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.144, allocations: 25.7 kB / 0.5377 GB, free: 6.297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.1441, allocations: 204 kB / 0.5379 GB, free: 6.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.188e-05/0.1442, allocations: 51.58 kB / 0.538 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.1443, allocations: 49.78 kB / 0.538 GB, free: 5.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1444, allocations: 338.8 kB / 0.5384 GB, free: 5.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1445, allocations: 55.95 kB / 0.5384 GB, free: 5.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.1447, allocations: 148.8 kB / 0.5386 GB, free: 5.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000341/0.145, allocations: 236.5 kB / 0.5388 GB, free: 5.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.145, allocations: 4 kB / 0.5388 GB, free: 5.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003886/0.1454, allocations: 237.2 kB / 0.539 GB, free: 4.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1454, allocations: 8 kB / 0.539 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1455, allocations: 4.438 kB / 0.539 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.1455, allocations: 8 kB / 0.539 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.1457, allocations: 51.91 kB / 0.5391 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.1457, allocations: 4 kB / 0.5391 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.1458, allocations: 11.98 kB / 0.5391 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.1459, allocations: 15.94 kB / 0.5391 GB, free: 4.781 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.0001697/0.146, allocations: 161.7 kB / 0.5393 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.1461, allocations: 27.81 kB / 0.5393 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000353/0.1464, allocations: 191.3 kB / 0.5395 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1464, allocations: 4 kB / 0.5395 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1464, allocations: 0 / 0.5395 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1464, allocations: 7.938 kB / 0.5395 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000742/0.1472, allocations: 0.552 MB / 0.54 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1472, allocations: 4 kB / 0.54 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.1473, allocations: 35.91 kB / 0.5401 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1473, allocations: 0 / 0.5401 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.1474, allocations: 4 kB / 0.5401 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1474, allocations: 7.938 kB / 0.5401 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1474, allocations: 4.031 kB / 0.5401 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.1477, allocations: 295.7 kB / 0.5404 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.374e-05/0.1478, allocations: 100.9 kB / 0.5405 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.1478, allocations: 11.98 kB / 0.5405 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.1479, allocations: 3.938 kB / 0.5405 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.887e-05/0.148, allocations: 15.98 kB / 0.5405 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.148, allocations: 4 kB / 0.5405 GB, free: 3.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001704/0.1481, allocations: 186 kB / 0.5407 GB, free: 3.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1481, allocations: 3.938 kB / 0.5407 GB, free: 3.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003279/0.1485, allocations: 48 kB / 0.5407 GB, free: 3.023 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.0006557/0.1491, allocations: 0.8232 MB / 0.5415 GB, free: 2.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003012/0.1494, allocations: 156.5 kB / 0.5417 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1494, allocations: 0 / 0.5417 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.1495, allocations: 68.77 kB / 0.5417 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.15, allocations: 63.88 kB / 0.5418 GB, free: 1.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.153, allocations: 2.572 MB / 0.5443 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.1534, allocations: 0.783 MB / 0.5451 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001355/0.1535, allocations: 42.28 kB / 0.5451 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.1537, allocations: 87.39 kB / 0.5452 GB, free: 14.21 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.1537, allocations: 4 kB / 0.5452 GB, free: 14.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.1819, allocations: 4.994 MB / 0.5501 GB, free: 9.332 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/8.447, allocations: 10.58 kB / 0.5501 GB, free: 9.324 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.275146752595901]