Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.0008469/0.0008469, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0008512/0.0008512, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9195/0.9195, 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.2463/0.2463, allocations: 29.41 MB / 290.1 MB, free: 2.449 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.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.717e-05/1.889e-05, allocations: 12.61 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005153/0.005172, allocations: 5.496 MB / 435.7 MB, free: 8.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004097/0.009269, allocations: 4.093 MB / 439.8 MB, free: 3.961 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002535/0.009522, allocations: 27.81 kB / 439.8 MB, free: 3.934 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1627/0.1723, allocations: 5.465 MB / 445.3 MB, free: 45.46 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009092/0.1732, allocations: 449.6 kB / 445.7 MB, free: 45.46 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004908/0.1737, allocations: 294.6 kB / 446 MB, free: 45.46 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.1749, allocations: 1.83 MB / 447.9 MB, free: 45.27 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005284/0.1754, allocations: 0.6215 MB / 448.5 MB, free: 45.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000521/0.176, allocations: 0.6392 MB / 449.1 MB, free: 45.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003798/0.1764, allocations: 479.2 kB / 449.6 MB, free: 45.13 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.95e-05/0.1764, allocations: 73.12 kB / 449.7 MB, free: 45.13 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.1766, allocations: 138.9 kB / 449.8 MB, free: 45.13 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.1767, allocations: 353.6 kB / 450.1 MB, free: 45.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.1769, allocations: 274 kB / 450.4 MB, free: 45.07 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006167/0.1775, allocations: 1.051 MB / 451.5 MB, free: 44.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1775, allocations: 0 / 451.5 MB, free: 44.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1775, allocations: 0 / 451.5 MB, free: 44.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1775, allocations: 0 / 451.5 MB, free: 44.99 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001147/0.1787, allocations: 0.964 MB / 452.4 MB, free: 44.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.1787, allocations: 13.98 kB / 452.4 MB, free: 44.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.945e-05/0.1788, allocations: 108.7 kB / 452.5 MB, free: 44.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002609/0.1791, allocations: 100 kB / 452.6 MB, free: 44.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00061/0.1797, allocations: 0.5521 MB / 453.2 MB, free: 44.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-05/0.1797, allocations: 86.61 kB / 453.3 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.756e-05/0.1798, allocations: 67.89 kB / 453.3 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.1805, allocations: 0.8411 MB / 454.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.1805, allocations: 5.078 kB / 454.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.493e-05/0.1806, allocations: 25.83 kB / 454.2 MB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.619e-05/0.1806, allocations: 53.66 kB / 454.3 MB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005469/0.1812, allocations: 0.6137 MB / 454.9 MB, free: 43.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.1833, allocations: 2.68 MB / 457.6 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004777/0.1837, allocations: 438.4 kB / 458 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.1839, allocations: 236.1 kB / 458.2 MB, free: 41.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.184, allocations: 4.5 kB / 458.2 MB, free: 41.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002802/0.1842, allocations: 368.9 kB / 458.6 MB, free: 41.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.1842, allocations: 4 kB / 458.6 MB, free: 41.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.001754/0.186, allocations: 1.743 MB / 460.3 MB, free: 40.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.186, allocations: 138.4 kB / 460.5 MB, free: 40.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.1863, allocations: 445.9 kB / 460.9 MB, free: 39.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.1863, allocations: 37.08 kB / 460.9 MB, free: 39.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.1864, allocations: 346.2 kB / 461.3 MB, free: 39.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.827e-05/0.1865, allocations: 161.2 kB / 461.4 MB, free: 39.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.254e-05/0.1866, allocations: 112.6 kB / 461.5 MB, free: 39.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.049e-05/0.1866, allocations: 367.5 kB / 461.9 MB, free: 38.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.1868, allocations: 259.1 kB / 462.1 MB, free: 38.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.1871, allocations: 422.9 kB / 462.6 MB, free: 38.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.1885, allocations: 1.255 MB / 463.8 MB, free: 37.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1885, allocations: 4 kB / 463.8 MB, free: 37.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009334/0.1894, allocations: 0.987 MB / 464.8 MB, free: 37.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.1894, allocations: 32.17 kB / 464.8 MB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1894, allocations: 10 kB / 464.8 MB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004694/0.1899, allocations: 300.3 kB / 465.1 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.1904, allocations: 178.1 kB / 465.3 MB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.1935, allocations: 5.04 MB / 470.4 MB, free: 33.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.1937, allocations: 24 kB / 470.4 MB, free: 33.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.1937, allocations: 26.8 kB / 470.4 MB, free: 33.77 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.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.1939, allocations: 300.3 kB / 470.7 MB, free: 33.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.1939, allocations: 53.73 kB / 470.7 MB, free: 33.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006222/0.1946, allocations: 0.6866 MB / 471.4 MB, free: 33.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1946, allocations: 11.2 kB / 471.4 MB, free: 33.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1946, allocations: 0 / 471.4 MB, free: 33.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1946, allocations: 6.391 kB / 471.5 MB, free: 33.17 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.1958, allocations: 1.399 MB / 472.9 MB, free: 32.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1958, allocations: 0 / 472.9 MB, free: 32.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005862/0.1964, allocations: 194.6 kB / 473 MB, free: 32.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.1965, allocations: 75.58 kB / 473.1 MB, free: 32.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.1966, allocations: 17.75 kB / 473.1 MB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.1977, allocations: 3.942 MB / 477.1 MB, free: 28.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1977, allocations: 0 / 477.1 MB, free: 28.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008099/0.1985, allocations: 1.031 MB / 478.1 MB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.1986, allocations: 101.4 kB / 478.2 MB, free: 27.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.798e-05/0.1987, allocations: 9.938 kB / 478.2 MB, free: 27.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1988, allocations: 23.78 kB / 478.2 MB, free: 27.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.1989, allocations: 36.06 kB / 478.3 MB, free: 27.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.1989, allocations: 18.78 kB / 478.3 MB, free: 27.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001942/0.1991, allocations: 321.3 kB / 478.6 MB, free: 27.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1991, allocations: 0 / 478.6 MB, free: 27.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004518/0.1996, allocations: 162.2 kB / 478.8 MB, free: 27.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (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.001011/0.2006, allocations: 1.589 MB / 480.4 MB, free: 26.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.2017, allocations: 1.015 MB / 481.4 MB, free: 25.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2017, allocations: 0 / 481.4 MB, free: 25.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004124/0.2021, allocations: 0.6524 MB / 482 MB, free: 25.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.2026, allocations: 135.6 kB / 482.2 MB, free: 25.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005607/0.2082, allocations: 6.135 MB / 488.3 MB, free: 21.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.2085, allocations: 384.5 kB / 488.7 MB, free: 21.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002398/0.2088, allocations: 114.1 kB / 488.8 MB, free: 21.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.209, allocations: 219 kB / 489 MB, free: 21.58 MB / 410.7 MB Notification: Performance of SimCode: time 6.32e-07/0.209, allocations: 0 / 489 MB, free: 21.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.2426, allocations: 15.07 MB / 0.4922 GB, free: 19.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.053/8.296, allocations: 5.219 kB / 0.4922 GB, free: 19.47 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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: 10.340702432207763]