Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8838/0.8838, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2184/0.2184, allocations: 29.4 MB / 290.1 MB, free: 2.465 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.38e-05/1.571e-05, allocations: 6.781 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.003451/0.003467, allocations: 4.114 MB / 434.3 MB, free: 9.461 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009783/0.004445, allocations: 0.9235 MB / 435.3 MB, free: 8.535 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.004585, allocations: 15.88 kB / 435.3 MB, free: 8.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.004743, allocations: 59.44 kB / 435.3 MB, free: 8.461 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003789/0.005122, allocations: 214.7 kB / 435.5 MB, free: 8.25 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001343/0.005256, allocations: 99.73 kB / 435.6 MB, free: 8.152 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.005597, allocations: 0.4942 MB / 436.1 MB, free: 7.656 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.005765, allocations: 91.98 kB / 436.2 MB, free: 7.562 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.006044, allocations: 291.1 kB / 436.5 MB, free: 7.277 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004852/0.006529, allocations: 227.4 kB / 436.7 MB, free: 7.055 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.583e-05/0.006565, allocations: 28 kB / 436.8 MB, free: 7.027 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.006627, allocations: 35.94 kB / 436.8 MB, free: 6.992 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.198e-05/0.006719, allocations: 135.6 kB / 436.9 MB, free: 6.859 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.898e-05/0.006807, allocations: 115.7 kB / 437 MB, free: 6.746 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.007112, allocations: 386.7 kB / 437.4 MB, free: 6.367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.007114, allocations: 0 / 437.4 MB, free: 6.367 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.007116, allocations: 8 kB / 437.4 MB, free: 6.359 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.00712, allocations: 0 / 437.4 MB, free: 6.359 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.000722/0.007842, allocations: 0.6306 MB / 438.1 MB, free: 5.699 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.007875, allocations: 15.98 kB / 438.1 MB, free: 5.684 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.007923, allocations: 62.72 kB / 438.1 MB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.642e-05/0.008019, allocations: 52.7 kB / 438.2 MB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.008387, allocations: 335.7 kB / 438.5 MB, free: 5.207 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.008401, allocations: 20.59 kB / 438.5 MB, free: 5.188 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.008435, allocations: 24 kB / 438.6 MB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003273/0.008763, allocations: 361.8 kB / 438.9 MB, free: 4.781 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.008773, allocations: 4 kB / 438.9 MB, free: 4.777 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.008792, allocations: 8 kB / 438.9 MB, free: 4.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.008799, allocations: 8 kB / 438.9 MB, free: 4.762 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.009067, allocations: 257.7 kB / 439.2 MB, free: 4.508 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.0101, allocations: 1.342 MB / 440.5 MB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.01027, allocations: 145 kB / 440.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.255e-05/0.01034, allocations: 73.73 kB / 440.7 MB, free: 2.836 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.01036, allocations: 4 kB / 440.7 MB, free: 2.832 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.01038, allocations: 38.55 kB / 440.8 MB, free: 2.785 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.01038, allocations: 7.938 kB / 440.8 MB, free: 2.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007501/0.01113, allocations: 0.6129 MB / 441.4 MB, free: 2.133 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.01117, allocations: 81.11 kB / 441.5 MB, free: 2.035 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.01136, allocations: 304.4 kB / 441.8 MB, free: 1.734 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.01137, allocations: 25.7 kB / 441.8 MB, free: 1.703 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.01146, allocations: 228 kB / 442 MB, free: 1.477 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.999e-05/0.01149, allocations: 51.53 kB / 442.1 MB, free: 1.426 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.179e-05/0.01155, allocations: 53.66 kB / 442.1 MB, free: 1.367 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.987e-05/0.01163, allocations: 338.9 kB / 442.5 MB, free: 1.027 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.34e-05/0.0117, allocations: 71.94 kB / 442.5 MB, free: 0.957 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.01181, allocations: 164.8 kB / 442.7 MB, free: 0.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.01201, allocations: 259.2 kB / 442.9 MB, free: 464 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.01201, allocations: 0 / 442.9 MB, free: 464 kB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002542/0.01227, allocations: 289.3 kB / 443.2 MB, free: 168 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.01228, allocations: 11.94 kB / 443.2 MB, free: 156 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.01229, allocations: 7.938 kB / 443.2 MB, free: 148 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.0123, allocations: 4 kB / 443.2 MB, free: 144 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.01244, allocations: 59.91 kB / 443.3 MB, free: 84 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.01244, allocations: 11.88 kB / 443.3 MB, free: 72 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.145e-05/0.01253, allocations: 19.98 kB / 443.3 MB, free: 52 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.01254, allocations: 8 kB / 443.3 MB, free: 44 kB / 410.7 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 (29): * Single equations (assignments): 29 * 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.1751/0.1877, allocations: 163.7 kB / 443.5 MB, free: 54.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.166e-05/0.1877, allocations: 28.27 kB / 443.5 MB, free: 54.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003306/0.1881, allocations: 242.5 kB / 443.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1881, allocations: 3.125 kB / 443.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1881, allocations: 0 / 443.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1881, allocations: 0 / 443.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004969/0.1886, allocations: 0.5763 MB / 444.3 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1886, allocations: 0 / 444.3 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.1888, allocations: 37.44 kB / 444.4 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1888, allocations: 0 / 444.4 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1888, allocations: 10.94 kB / 444.4 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1888, allocations: 3.281 kB / 444.4 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1888, allocations: 3.688 kB / 444.4 MB, free: 53.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.1891, allocations: 425.5 kB / 444.8 MB, free: 53.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.259e-05/0.1891, allocations: 31.92 kB / 444.8 MB, free: 53.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.1892, allocations: 2 kB / 444.8 MB, free: 53.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-05/0.1892, allocations: 13.2 kB / 444.9 MB, free: 53.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.686e-05/0.1893, allocations: 16.41 kB / 444.9 MB, free: 53.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.1893, allocations: 3.469 kB / 444.9 MB, free: 53.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.1894, allocations: 215.1 kB / 445.1 MB, free: 53.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1894, allocations: 3.281 kB / 445.1 MB, free: 53.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002299/0.1896, allocations: 57.06 kB / 445.2 MB, free: 53.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0004226/0.19, allocations: 0.9545 MB / 446.1 MB, free: 52.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.1903, allocations: 187.9 kB / 446.3 MB, free: 52.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1903, allocations: 0 / 446.3 MB, free: 52.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.671e-05/0.1903, allocations: 83.06 kB / 446.4 MB, free: 52.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.1907, allocations: 71.89 kB / 446.4 MB, free: 52.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.1926, allocations: 2.849 MB / 449.3 MB, free: 50.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.1927, allocations: 203.2 kB / 449.5 MB, free: 50.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.1928, allocations: 57.02 kB / 449.5 MB, free: 50.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1929, allocations: 106.8 kB / 449.6 MB, free: 50.68 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1929, allocations: 0 / 449.6 MB, free: 50.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.2119, allocations: 6.954 MB / 456.6 MB, free: 49.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.892/7.104, allocations: 5.844 kB / 456.6 MB, free: 49.38 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv failed! Error: Could not read variable meter.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv. Warning: Get data of variable meter.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv failed! Error: Could not read variable meter.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv. Warning: Get data of variable meter.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.1458173468709]