Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.0008082/0.0008082, 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.001095/0.001095, 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.9464/0.9464, allocations: 177.1 MB / 204.3 MB, free: 5.703 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.2458/0.2458, allocations: 29.4 MB / 290.1 MB, free: 2.438 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.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.964e-05/3.161e-05, allocations: 4.812 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005881/0.005912, allocations: 5.087 MB / 435.3 MB, free: 8.469 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.008612, allocations: 1.495 MB / 436.8 MB, free: 6.969 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003027/0.008915, allocations: 23.81 kB / 436.8 MB, free: 6.945 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000348/0.009263, allocations: 130.9 kB / 436.9 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006797/0.009942, allocations: 317.9 kB / 437.3 MB, free: 6.504 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.01029, allocations: 167.5 kB / 437.4 MB, free: 6.34 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006751/0.01096, allocations: 0.7236 MB / 438.1 MB, free: 5.613 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003609/0.01133, allocations: 328.3 kB / 438.5 MB, free: 5.281 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004323/0.01176, allocations: 411 kB / 438.9 MB, free: 4.879 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002927/0.01205, allocations: 251.2 kB / 439.1 MB, free: 4.633 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.686e-05/0.0121, allocations: 47.94 kB / 439.2 MB, free: 4.586 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.316e-05/0.01215, allocations: 48 kB / 439.2 MB, free: 4.539 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.01227, allocations: 167.5 kB / 439.4 MB, free: 4.375 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.01241, allocations: 179.6 kB / 439.5 MB, free: 4.199 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005294/0.01294, allocations: 0.5919 MB / 440.1 MB, free: 3.605 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.01294, allocations: 0 / 440.1 MB, free: 3.605 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.01294, allocations: 0 / 440.1 MB, free: 3.605 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.01295, allocations: 0 / 440.1 MB, free: 3.605 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001074/0.01402, allocations: 0.7241 MB / 440.9 MB, free: 2.855 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.01408, allocations: 11.98 kB / 440.9 MB, free: 2.844 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.692e-05/0.01415, allocations: 82.7 kB / 441 MB, free: 2.754 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.057e-05/0.01424, allocations: 56.61 kB / 441 MB, free: 2.699 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.01482, allocations: 392.8 kB / 441.4 MB, free: 2.293 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.741e-05/0.01492, allocations: 96.95 kB / 441.5 MB, free: 2.188 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/0.01498, allocations: 47.92 kB / 441.5 MB, free: 2.141 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005629/0.01554, allocations: 0.497 MB / 442 MB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.01557, allocations: 11.89 kB / 442 MB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.0156, allocations: 20 kB / 442.1 MB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.01561, allocations: 8 kB / 442.1 MB, free: 1.562 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004181/0.01602, allocations: 339.7 kB / 442.4 MB, free: 1.234 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1837/0.1997, allocations: 1.786 MB / 444.2 MB, free: 53.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004721/0.2002, allocations: 211.8 kB / 444.4 MB, free: 53.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.2003, allocations: 93.55 kB / 444.5 MB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2003, allocations: 4.625 kB / 444.5 MB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.2004, allocations: 38.78 kB / 444.5 MB, free: 53.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.916e-06/0.2004, allocations: 0 / 444.5 MB, free: 53.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001578/0.202, allocations: 0.7741 MB / 445.3 MB, free: 53.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.202, allocations: 109.3 kB / 445.4 MB, free: 53.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.2023, allocations: 342.7 kB / 445.7 MB, free: 52.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.2023, allocations: 28.02 kB / 445.8 MB, free: 52.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.2025, allocations: 275.4 kB / 446 MB, free: 52.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.2025, allocations: 80.41 kB / 446.1 MB, free: 52.72 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.924e-05/0.2026, allocations: 65.53 kB / 446.2 MB, free: 52.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.3e-05/0.2027, allocations: 347.2 kB / 446.5 MB, free: 52.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.2028, allocations: 81.41 kB / 446.6 MB, free: 52.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.203, allocations: 219.2 kB / 446.8 MB, free: 52.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.2041, allocations: 497.2 kB / 447.3 MB, free: 51.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2041, allocations: 0 / 447.3 MB, free: 51.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006435/0.2047, allocations: 415.1 kB / 447.7 MB, free: 51.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.2048, allocations: 8.25 kB / 447.7 MB, free: 51.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2048, allocations: 3.188 kB / 447.7 MB, free: 51.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.205, allocations: 71.66 kB / 447.8 MB, free: 51.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.2052, allocations: 72.2 kB / 447.9 MB, free: 51.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.2063, allocations: 1.822 MB / 449.7 MB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.2065, allocations: 21.61 kB / 449.7 MB, free: 50.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.2065, allocations: 12.62 kB / 449.7 MB, free: 50.06 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.2066, allocations: 195.7 kB / 449.9 MB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.2066, allocations: 35.55 kB / 449.9 MB, free: 49.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.891e-05/0.2067, allocations: 43.98 kB / 450 MB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2067, allocations: 7.125 kB / 450 MB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2067, allocations: 3.062 kB / 450 MB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2067, allocations: 0 / 450 MB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006717/0.2074, allocations: 0.6631 MB / 450.7 MB, free: 49.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2074, allocations: 5.812 kB / 450.7 MB, free: 49.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.2075, allocations: 46.77 kB / 450.7 MB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.998e-05/0.2076, allocations: 21.98 kB / 450.7 MB, free: 49.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.2076, allocations: 7 kB / 450.7 MB, free: 49.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004039/0.208, allocations: 1.274 MB / 452 MB, free: 48.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.208, allocations: 7.094 kB / 452 MB, free: 48.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003906/0.2084, allocations: 0.4971 MB / 452.5 MB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.801e-05/0.2084, allocations: 44.58 kB / 452.6 MB, free: 47.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.2084, allocations: 14.12 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2085, allocations: 10.31 kB / 452.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.353e-05/0.2086, allocations: 24.77 kB / 452.6 MB, free: 47.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.2086, allocations: 6.562 kB / 452.6 MB, free: 47.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001299/0.2087, allocations: 227.8 kB / 452.8 MB, free: 47.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2087, allocations: 3.312 kB / 452.8 MB, free: 47.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003342/0.2091, allocations: 87.53 kB / 452.9 MB, free: 47.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007642/0.2098, allocations: 1.044 MB / 454 MB, free: 46.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.2104, allocations: 351.9 kB / 454.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2104, allocations: 0.8438 kB / 454.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.2106, allocations: 216.8 kB / 454.5 MB, free: 46.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.211, allocations: 112 kB / 454.6 MB, free: 46.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002908/0.2139, allocations: 3.61 MB / 458.2 MB, free: 43.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.2141, allocations: 238.8 kB / 458.5 MB, free: 43.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.2142, allocations: 49.03 kB / 458.5 MB, free: 43.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.2143, allocations: 145.6 kB / 458.7 MB, free: 43.74 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2143, allocations: 0 / 458.7 MB, free: 43.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.2381, allocations: 9.435 MB / 468.1 MB, free: 42.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.194/8.433, allocations: 3.094 kB / 468.1 MB, free: 42.1 MB / 410.7 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.Drives.DCmotor_pm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable efficiency.eta in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable efficiency.eta from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! Error: Could not read variable power.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv. Warning: Get data of variable power.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:Time,efficiency.eta,loadInertia.flange_a.tau,loadInertia.w,power.p Variables in the result:time,dcm_pm.motor.i,frictTorq.phi,loadInertia.w [Calling sys.exit(0), Time elapsed: 10.577867759391665]