Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.0008217/0.0008217, 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.0008642/0.0008642, allocations: 170.3 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.9052/0.9052, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2117/0.2117, allocations: 29.4 MB / 290.1 MB, free: 2.453 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.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.375e-05/1.519e-05, allocations: 4.109 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004525/0.004541, allocations: 4.436 MB / 434.7 MB, free: 9.121 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.006296, allocations: 1.405 MB / 436.1 MB, free: 7.711 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.006514, allocations: 27.81 kB / 436.1 MB, free: 7.684 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003901/0.006904, allocations: 107.1 kB / 436.2 MB, free: 7.578 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005654/0.007469, allocations: 286.1 kB / 436.5 MB, free: 7.297 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.00772, allocations: 111.8 kB / 436.6 MB, free: 7.188 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000618/0.008338, allocations: 0.5251 MB / 437.1 MB, free: 6.66 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.008527, allocations: 108.5 kB / 437.2 MB, free: 6.551 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.008876, allocations: 283.1 kB / 437.5 MB, free: 6.273 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002475/0.009123, allocations: 179.5 kB / 437.7 MB, free: 6.098 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.009162, allocations: 24 kB / 437.7 MB, free: 6.074 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.786e-05/0.0092, allocations: 28 kB / 437.7 MB, free: 6.047 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.707e-05/0.009297, allocations: 115.6 kB / 437.8 MB, free: 5.934 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.009401, allocations: 115.8 kB / 437.9 MB, free: 5.82 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.009768, allocations: 382.6 kB / 438.3 MB, free: 5.445 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.009772, allocations: 0 / 438.3 MB, free: 5.445 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.009774, allocations: 0 / 438.3 MB, free: 5.445 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.009782, allocations: 3.938 kB / 438.3 MB, free: 5.441 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.001185/0.01097, allocations: 0.5877 MB / 438.9 MB, free: 4.824 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.01101, allocations: 15.98 kB / 438.9 MB, free: 4.809 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.529e-05/0.01107, allocations: 66.72 kB / 439 MB, free: 4.734 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.01112, allocations: 40.7 kB / 439 MB, free: 4.695 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004676/0.01159, allocations: 332.7 kB / 439.3 MB, free: 4.344 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.01161, allocations: 21.03 kB / 439.4 MB, free: 4.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.01165, allocations: 36.08 kB / 439.4 MB, free: 4.289 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.01199, allocations: 331.6 kB / 439.7 MB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.012, allocations: 0 / 439.7 MB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.01202, allocations: 15.94 kB / 439.7 MB, free: 3.914 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.01203, allocations: 12 kB / 439.8 MB, free: 3.902 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.01226, allocations: 201.8 kB / 440 MB, free: 3.703 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.01344, allocations: 1.394 MB / 441.3 MB, free: 2.223 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.01375, allocations: 190.3 kB / 441.5 MB, free: 2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.439e-05/0.01382, allocations: 67.47 kB / 441.6 MB, free: 1.922 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.01384, allocations: 12 kB / 441.6 MB, free: 1.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.01386, allocations: 34.56 kB / 441.6 MB, free: 1.867 MB / 410.7 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.01387, allocations: 0 / 441.6 MB, free: 1.867 MB / 410.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007899/0.01466, allocations: 0.6246 MB / 442.3 MB, free: 1.207 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.01471, allocations: 132.5 kB / 442.4 MB, free: 1.047 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.01493, allocations: 317.6 kB / 442.7 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.01495, allocations: 33.7 kB / 442.7 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.01506, allocations: 220.1 kB / 443 MB, free: 480 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.0151, allocations: 67.8 kB / 443 MB, free: 412 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-05/0.01515, allocations: 57.66 kB / 443.1 MB, free: 348 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.1611/0.1763, allocations: 342.8 kB / 443.4 MB, free: 54.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.1764, allocations: 49.47 kB / 443.5 MB, free: 54.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-05/0.1765, allocations: 145.6 kB / 443.6 MB, free: 54.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.1767, allocations: 222.3 kB / 443.8 MB, free: 54.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1767, allocations: 3 kB / 443.8 MB, free: 54.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002679/0.177, allocations: 260.8 kB / 444.1 MB, free: 54.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.177, allocations: 6.438 kB / 444.1 MB, free: 54.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.177, allocations: 3.312 kB / 444.1 MB, free: 54.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.177, allocations: 11.22 kB / 444.1 MB, free: 54.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.1773, allocations: 82.2 kB / 444.2 MB, free: 54.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004611/0.1777, allocations: 1.262 MB / 445.4 MB, free: 52.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.1779, allocations: 14.53 kB / 445.5 MB, free: 52.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.1779, allocations: 14.31 kB / 445.5 MB, free: 52.74 MB / 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.1781, allocations: 165.9 kB / 445.6 MB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.1782, allocations: 31.62 kB / 445.7 MB, free: 52.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.1784, allocations: 185.5 kB / 445.8 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1784, allocations: 2.969 kB / 445.8 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1784, allocations: 4.141 kB / 445.8 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1784, allocations: 6.203 kB / 445.9 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006122/0.179, allocations: 0.4955 MB / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1791, allocations: 3.438 kB / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.1792, allocations: 42.25 kB / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.1792, allocations: 0 / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.1792, allocations: 2.906 kB / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.1793, allocations: 9.562 kB / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1793, allocations: 3.5 kB / 446.4 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.1795, allocations: 0.4936 MB / 446.9 MB, free: 51.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.569e-05/0.1796, allocations: 27.89 kB / 446.9 MB, free: 51.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.1796, allocations: 7.188 kB / 446.9 MB, free: 51.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.1797, allocations: 7.25 kB / 446.9 MB, free: 51.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.1797, allocations: 19.06 kB / 447 MB, free: 51.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.1798, allocations: 6.594 kB / 447 MB, free: 51.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001362/0.1799, allocations: 224.7 kB / 447.2 MB, free: 51.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1799, allocations: 0.6562 kB / 447.2 MB, free: 51.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003002/0.1802, allocations: 57.22 kB / 447.2 MB, free: 51.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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.0003995/0.1806, allocations: 1.028 MB / 448.3 MB, free: 50.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.1808, allocations: 148.1 kB / 448.4 MB, free: 50.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1808, allocations: 3.281 kB / 448.4 MB, free: 50.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.441e-05/0.1809, allocations: 67.08 kB / 448.5 MB, free: 50.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.1814, allocations: 101.7 kB / 448.6 MB, free: 50.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.1837, allocations: 3.166 MB / 451.8 MB, free: 48.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.1838, allocations: 203 kB / 452 MB, free: 48.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001355/0.1839, allocations: 52 kB / 452 MB, free: 48.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.812e-05/0.184, allocations: 117.8 kB / 452.1 MB, free: 48.47 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.184, allocations: 0 / 452.1 MB, free: 48.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.2074, allocations: 7.703 MB / 459.8 MB, free: 47.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.948/7.155, allocations: 0 / 459.8 MB, free: 47.08 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Machines_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable motor.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable motor.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable motor.w_el in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable motor.w_el from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.145832257345319]